From 5c701801db39e3b565025813bc8e32b00c704c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Wed, 29 Nov 2023 16:02:37 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E7=99=BD=E5=90=8D=E5=8D=95=E9=A1=B5=E9=9D=A2=E6=94=BE?= =?UTF-8?q?=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.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/permission.ts b/src/permission.ts index 4543d08..c819ff4 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -20,6 +20,8 @@ router.beforeEach(async (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;