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 } })