feat: There is no way the,

This commit is contained in:
super_liu
2021-12-21 17:45:45 +08:00
parent 419fdf7ebc
commit 3b4dc3dc33
+14 -17
View File
@@ -116,16 +116,20 @@ router.beforeEach(function (to, from, next) {
} }
} else { } else {
if (toName.slice(0,5) !== 'phone') { if (toName.slice(0,5) !== 'phone') {
if (toName === 'processCenter') {
next()
}else {
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum + let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
'&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType '&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType
let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1) let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1)
next({path: phoneRouter + '?' + paramPhone}) next({path: phoneRouter + '?' + paramPhone})
}else {
if(toName !== 'blankPage'){
if(to.matched.length == 0){
next('/blankPage')
}else {
next()
} }
}else { }else {
extractedVerify(token) next()
}
} }
} }
} else { } else {
@@ -147,8 +151,13 @@ router.beforeEach(function (to, from, next) {
} }
} }
}else if(webLoginType != null && webLoginType === 'dev'){ }else if(webLoginType != null && webLoginType === 'dev'){
if (isMobile()) {
extractedVerify(token)
} else {
next('/Login') next('/Login')
} }
}
}else { }else {
extractedVerify(token) extractedVerify(token)
} }
@@ -235,14 +244,10 @@ router.beforeEach(function (to, from, next) {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess"); extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
} }
} }
} else {
if (isMobile()){
next()
} else { } else {
extracted3() extracted3()
} }
} }
}
function extracted(routerPath) { function extracted(routerPath) {
if (token === null || token === '') { if (token === null || token === '') {
extractedLocalStorage(routerPath,param); extractedLocalStorage(routerPath,param);
@@ -284,17 +289,9 @@ router.beforeEach(function (to, from, next) {
} }
if(path === '/loginVerify'){ if(path === '/loginVerify'){
if(webLoginType != null && webLoginType === 'dev'){ if(webLoginType != null && webLoginType === 'dev'){
if(isMobile()) {
next('/blankPage')
} else {
next('/Login') next('/Login')
}
}else { }else {
if(isMobile()) { next()
next('/blankPage')
} else {
next('/Login')
}
} }
}else { }else {
next() next()