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 (isMobile()) {
|
||||||
if(toName === 'processCenter'){
|
if(toName === 'processCenter'){
|
||||||
window.close();
|
window.opener = null;
|
||||||
}
|
window.open("about:blank", "_self").close()
|
||||||
if ((token === null || token === '' ) && toName !== 'Login') {
|
}else {
|
||||||
if(toName !== 'phoneIndex'){
|
if ((token === null || token === '' ) && toName !== 'Login') {
|
||||||
sessionStorage.removeItem("param");
|
if(toName !== 'phoneIndex'){
|
||||||
sessionStorage.setItem('param',JSON.stringify(param4))
|
sessionStorage.removeItem("param");
|
||||||
next('/phoneIndex')
|
sessionStorage.setItem('param',JSON.stringify(param4))
|
||||||
}else {
|
next('/phoneIndex')
|
||||||
next()
|
}else {
|
||||||
}
|
next()
|
||||||
} else {
|
}
|
||||||
if (toName.slice(0,5) !== 'phone') {
|
} else {
|
||||||
|
if (toName.slice(0,5) !== 'phone') {
|
||||||
if(toName === 'LoginVerify'){
|
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')
|
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 {
|
}else {
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
}else {
|
|
||||||
next()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user