|
@@ -31,8 +31,7 @@ export function checkStatus(status: number, msg: string, errorMessageMode: Error
|
|
|
userStore.setSessionTimeout(true);
|
|
|
} else {
|
|
|
// 经由自动登录的账号需要在登录信息过期之后重新登录
|
|
|
- // 目前用户角色列表为空数组,所以使用既定的用户名判断
|
|
|
- const continuallyLogin = userStore.getUserInfo.username === AUTO_LOGIN_USERNAME;
|
|
|
+ const continuallyLogin = userStore.getIsAutoLogin;
|
|
|
if (continuallyLogin) {
|
|
|
userStore.continuallyLogin();
|
|
|
} else {
|