From 76205588f0a7313b1a6dad4553fb256daa34d175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=9F=E6=9B=BE=E4=B8=BA=E4=BD=A0=E5=83=8F=E8=B6=85?= =?UTF-8?q?=E4=BA=BA?= <1553592282@qq.com> Date: Tue, 24 Oct 2023 07:45:03 +0000 Subject: [PATCH] update ruoyi-ui/src/permission.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 也曾为你像超人 <1553592282@qq.com> --- ruoyi-ui/src/permission.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruoyi-ui/src/permission.js b/ruoyi-ui/src/permission.js index e1a14da..c568979 100644 --- a/ruoyi-ui/src/permission.js +++ b/ruoyi-ui/src/permission.js @@ -18,6 +18,8 @@ router.beforeEach((to, from, next) => { if (to.path === '/login') { next({ path: '/' }) NProgress.done() + } else if (whiteList.indexOf(to.path) !== -1) { + next() } else { if (store.getters.roles.length === 0) { isRelogin.show = true