zhengyiming
5 天以前 613d1a6ff31ca384c51d786819b27136d393a181
src/store/modules/user.ts
@@ -19,7 +19,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,6 +68,7 @@
        },
        {
          showLoading: false,
          skipErrorHandler: true,
        }
      );
      if (res) {