feat:new
This commit is contained in:
+21
-24
@@ -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') {
|
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
|
||||||
next()
|
|
||||||
}else {
|
|
||||||
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 {
|
}else {
|
||||||
extractedVerify(token)
|
if(toName !== 'blankPage'){
|
||||||
|
if(to.matched.length == 0){
|
||||||
|
next('/blankPage')
|
||||||
|
}else {
|
||||||
|
next()
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
next()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -147,7 +151,12 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if(webLoginType != null && webLoginType === 'dev'){
|
}else if(webLoginType != null && webLoginType === 'dev'){
|
||||||
next('/Login')
|
if (isMobile()) {
|
||||||
|
extractedVerify(token)
|
||||||
|
} else {
|
||||||
|
next('/Login')
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
extractedVerify(token)
|
extractedVerify(token)
|
||||||
@@ -236,11 +245,7 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isMobile()){
|
extracted3()
|
||||||
next()
|
|
||||||
} else {
|
|
||||||
extracted3()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function extracted(routerPath) {
|
function extracted(routerPath) {
|
||||||
@@ -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('/Login')
|
||||||
next('/blankPage')
|
|
||||||
} else {
|
|
||||||
next('/Login')
|
|
||||||
}
|
|
||||||
}else {
|
}else {
|
||||||
if(isMobile()) {
|
next()
|
||||||
next('/blankPage')
|
|
||||||
} else {
|
|
||||||
next('/Login')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
next()
|
next()
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
loginNew (res) {
|
loginNew (res) {
|
||||||
|
window.sessionStorage.clear()
|
||||||
let Base64 = require('js-base64').Base64
|
let Base64 = require('js-base64').Base64
|
||||||
let userInfoStr = Base64.decode(res.data)
|
let userInfoStr = Base64.decode(res.data)
|
||||||
let userInfo2 = decodeURIComponent(userInfoStr)
|
let userInfo2 = decodeURIComponent(userInfoStr)
|
||||||
|
|||||||
Reference in New Issue
Block a user