From e6f582bd1a8260653bfb5e288db155e509b264ff Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 28 Nov 2023 13:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BD=E5=90=8D=E5=8D=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=94=BE=E8=A1=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/permission.js b/src/permission.js index 2a4f871..1afe9cd 100644 --- a/src/permission.js +++ b/src/permission.js @@ -21,6 +21,8 @@ router.beforeEach((to, from, next) => { if (to.path === '/login') { next({ path: '/' }) NProgress.done() + } else if (whiteList.indexOf(to.path) !== -1) { + next() } else { if (useUserStore().roles.length === 0) { isRelogin.show = true