feat: There is no way the,iphone config

This commit is contained in:
super_liu
2021-12-22 16:48:46 +08:00
parent 9b03a8b05c
commit 30400120bf
+5 -2
View File
@@ -106,10 +106,12 @@ router.beforeEach(function (to, from, next) {
} }
// 返回值为登录状态 // 返回值为登录状态
/** 判断是不是在手机端操作 */ /** 判断是不是在手机端操作 */
debugger
if (isMobile()) { if (isMobile()) {
if(toName === 'processCenter'){ if(toName === 'processCenter'){
window.close(); window.opener = null;
} window.open("about:blank", "_self").close()
}else {
if ((token === null || token === '' ) && toName !== 'Login') { if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){ if(toName !== 'phoneIndex'){
sessionStorage.removeItem("param"); sessionStorage.removeItem("param");
@@ -141,6 +143,7 @@ router.beforeEach(function (to, from, next) {
} }
} }
} }
}
} else { } else {
if ((token === null || token === '' ) && toName !== 'Login') { if ((token === null || token === '' ) && toName !== 'Login') {
if(webLoginType != null && webLoginType === 'idm' ){ if(webLoginType != null && webLoginType === 'idm' ){