From 3b39894001163736954f67c163fabfd2c548925d Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 27 Feb 2024 18:16:46 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20OA=E5=8D=95=E7=82=B9=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=90=8E=E8=B7=B3=E8=BD=AC=E5=BE=85=E5=8A=9E=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission.js b/src/permission.js index d1e1493b..e8598cf9 100644 --- a/src/permission.js +++ b/src/permission.js @@ -132,7 +132,7 @@ router.beforeEach(async (to, from, next) => { if (to.path === '/user/login' && to.path !== process.env.VUE_APP_LOGIN_PAGE) { const toPage = process.env.VUE_APP_LOGIN_PAGE.replace('/dashboard/analysis', path.replaceAll('&', '%26')) console.log(toPage) - // window.location.replace(toPage) + window.location.replace(toPage) return } next() @@ -144,7 +144,7 @@ router.beforeEach(async (to, from, next) => { if (path === '/user/login' && to.path !== process.env.VUE_APP_LOGIN_PAGE) { const toPage = process.env.VUE_APP_LOGIN_PAGE.replace('/dashboard/analysis', to.fullPath.replaceAll('&', '%26')) console.log(toPage) - // window.location.replace(toPage) + window.location.replace(toPage) return } next({ path: path, query: { redirect: to.fullPath } })