wupengfei
6 天以前 139aa3314684d5f009f1abb2c5324cf31be7045a
src/store/modules/user.ts
@@ -18,7 +18,7 @@
export interface UserState {
  token: string;
  userInfo: API.PasswordLoginCommandCallback;
  userInfo: API.LoginCommandCallback;
}
function getDefaultState() {
@@ -52,7 +52,7 @@
      this.token = token;
      setToken(token);
    },
    setUserInfo(userInfo: API.PasswordLoginCommandCallback) {
    setUserInfo(userInfo: API.LoginCommandCallback) {
      this.userInfo = userInfo;
      setUserInfo(userInfo);
    },
@@ -68,7 +68,6 @@
        },
        {
          showLoading: false,
          skipErrorHandler: true,
        }
      );
      if (res) {