feat: There is no way the,

This commit is contained in:
super_liu
2021-12-18 16:28:38 +08:00
parent afc9f0130f
commit 462fb836af
+8 -1
View File
@@ -115,7 +115,14 @@ router.beforeEach(function (to, from, next) {
next()
}
} else {
next()
if (toName.slice(0,5) !== 'phone') {
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
'&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType
let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1)
next({path: phoneRouter + '?' + paramPhone})
}else {
next()
}
}
} else {
if ((token === null || token === '' ) && toName !== 'Login') {