提交 2d65dc4d 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc------前端增加单点登录

上级 a9259af5
......@@ -87,10 +87,16 @@ export class Interceptors {
window.location.href = loginurl;
} else {
if (Object.is(this.router.currentRoute.name, 'login')) {
return;
if(Environment.isSsoLoginModel){
// 单点登录
window.location.href = Environment.ssoLoginAddr+'?service='+window.location.href;
}else{
// 普通应用登录
if (Object.is(this.router.currentRoute.name, 'login')) {
return;
}
this.router.push({ name: 'login', query: { redirect: this.router.currentRoute.fullPath } });
}
this.router.push({ name: 'login', query: { redirect: this.router.currentRoute.fullPath } });
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册