组织机构可配置区域、类型、层级
支持cas登录
This commit is contained in:
@ -82,11 +82,21 @@ const transform: AxiosTransform = {
|
||||
timeoutMsg = t('登录超时,请重新登录!');
|
||||
const userStore = useUserStoreWithOut();
|
||||
userStore.setToken(undefined);
|
||||
if (!window.location.hash.includes('login')) {
|
||||
if (!window.location.hash.includes('login')&&!window.location.pathname.includes('login')
|
||||
&&!window.location.hash.includes('tokenLogin')&&!window.location.pathname.includes('tokenLogin')) {
|
||||
userStore.logout(true);
|
||||
}
|
||||
const go = useGo();
|
||||
go('/login');
|
||||
if(data.urlToRedirectTo){
|
||||
//登录页面不跳转
|
||||
if(!window.location.hash.includes('login')&&!window.location.pathname.includes('login')
|
||||
&&!window.location.hash.includes('tokenLogin')&&!window.location.pathname.includes('tokenLogin')){
|
||||
window.location.href=data.urlToRedirectTo;
|
||||
}
|
||||
options.errorMessageMode="none";
|
||||
}else{
|
||||
const go = useGo();
|
||||
go('/login');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (msg) {
|
||||
|
||||
Reference in New Issue
Block a user