wupengfei
10 天以前 c5742b6e6eadda91a0cd99ebcc51d27d0f344c73
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,8 +63,8 @@
        {
          ...params,
          password: md5Encrypt(params.password),
          type: EnumUserType.Operation,
          clientType: EnumClientType.PcWeb,
          type: AppLocalConfig.userType,
          clientType: AppLocalConfig.clientType,
        },
        {
          showLoading: false,