组织机构可配置区域、类型、层级

支持cas登录
This commit is contained in:
yaoyn
2024-09-19 15:47:06 +08:00
parent 78b05fc000
commit 54def95458
8 changed files with 377 additions and 260 deletions

View File

@ -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) {