wupengfei
2025-08-08 e5b6f4180bd311bb63c3c5c9b3074e3b6b60e19e
src/store/modules/user.ts
@@ -42,9 +42,10 @@
      return state.userInfo;
    },
    // userId(state) {
    //   return state.accountInfo.sub;
    // },
    userId(state) {
      //TODO
      return '';
    },
  },
  actions: {
    setToken(token: string) {
@@ -62,11 +63,12 @@
        {
          ...params,
          password: md5Encrypt(params.password),
          type: EnumUserType.Operation,
          clientType: EnumClientType.PcWeb,
          type: AppLocalConfig.userType,
          clientType: AppLocalConfig.clientType,
        },
        {
          showLoading: false,
          skipErrorHandler: true,
        }
      );
      if (res) {