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
+28 -25
View File
@@ -106,38 +106,41 @@ router.beforeEach(function (to, from, next) {
}
// 返回值为登录状态
/** 判断是不是在手机端操作 */
debugger
if (isMobile()) {
if(toName === 'processCenter'){
window.close();
}
if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){
sessionStorage.removeItem("param");
sessionStorage.setItem('param',JSON.stringify(param4))
next('/phoneIndex')
}else {
next()
}
} else {
if (toName.slice(0,5) !== 'phone') {
window.opener = null;
window.open("about:blank", "_self").close()
}else {
if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){
sessionStorage.removeItem("param");
sessionStorage.setItem('param',JSON.stringify(param4))
next('/phoneIndex')
}else {
next()
}
} else {
if (toName.slice(0,5) !== 'phone') {
if(toName === 'LoginVerify'){
next('/blankPage')
}else {
if(toName === 'blankPage' || toName === 'processedPage') {
next()
}else {
extractedVerify()
}
}
}else {
if(toName !== 'blankPage'){
if(to.matched.length === 0){
next('/blankPage')
}else {
if(toName === 'blankPage' || toName === 'processedPage') {
next()
}else {
extractedVerify()
}
}
}else {
if(toName !== 'blankPage'){
if(to.matched.length === 0){
next('/blankPage')
}else {
next()
}
}else {
next()
}
}else {
next()
}
}
}