diff --git a/src/main.js b/src/main.js index 95d9b4ba1..d126494a2 100644 --- a/src/main.js +++ b/src/main.js @@ -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') {