From 28cb5cbb9bb221febc2ed61d94f923e875e94843 Mon Sep 17 00:00:00 2001 From: zk Date: Tue, 3 Sep 2024 17:39:01 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=B5=8B=E8=AF=95=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=99=BB=E5=BD=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index f0b6991..9d34ff5 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -79,6 +79,9 @@ router.beforeEach((to, from, next) => { } let flag1 = getAuthCache('flag1')?.includes('yinchuan'); let flag2 = getAuthCache('flag2')?.includes('xian'); + if (to.path == '/yinChuanTest') { + next(); + } if (flag1 && flag2) { next(); } else {