feat: 单点登录
This commit is contained in:
@ -82,7 +82,9 @@ const transform: AxiosTransform = {
|
||||
timeoutMsg = t('登录超时,请重新登录!');
|
||||
const userStore = useUserStoreWithOut();
|
||||
userStore.setToken(undefined);
|
||||
userStore.logout(true);
|
||||
if (!window.location.hash.includes('login')) {
|
||||
userStore.logout(true);
|
||||
}
|
||||
const go = useGo();
|
||||
go('/login');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user