feat: There is no way the,iphone config
This commit is contained in:
+28
-25
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user