fix: 修复手机集成WELINK页面的BUG

This commit is contained in:
zyd
2022-06-14 19:51:19 +08:00
parent 2e9c55e635
commit 7e42473c79
5 changed files with 26 additions and 14 deletions
+4 -2
View File
@@ -144,9 +144,11 @@ router.beforeEach(function (to, from, next) {
// 单点登录
/** 判断是不是在手机端操作 */
if (isMobile()) {
if(toName === 'phoneHome'){
if(toName === 'phoneHome' && (token === undefined || token === null || token === '')){
next('/loginVerifyPhone')
}else if(toName === 'processCenter'){
}else if(toName === 'phoneHome' && token != null){
next()
} else if(toName === 'processCenter'){
// hwh5.close();
//关闭当前窗口
let userAgent = navigator.userAgent;