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 {