From 462fb836af20534c6d16661b2b8c4ecfac9e26b9 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Sat, 18 Dec 2021 16:28:38 +0800 Subject: [PATCH] feat: There is no way the, --- src/main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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') {