From 135c8047031b14a1f05f5750d803d820e80813fe Mon Sep 17 00:00:00 2001 From: zhangjiabao Date: Wed, 25 Dec 2024 10:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/y9vue-code-generator/src/router/checkRouter.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vue/y9vue-code-generator/src/router/checkRouter.js b/vue/y9vue-code-generator/src/router/checkRouter.js index 346acb9..72cf351 100644 --- a/vue/y9vue-code-generator/src/router/checkRouter.js +++ b/vue/y9vue-code-generator/src/router/checkRouter.js @@ -118,12 +118,7 @@ export const routerBeforeEach = async (to, from) => { return true; } let path = to.path; - let CHECK; - if (path == '/system' || path == '/localSystem' || path == '/localTemplate') { - CHECK = await check(); - } else { - CHECK = (await checkRole(['systemAdmin'])) ? true : false; - } + let CHECK = await check(); if (CHECK) { if (!to.name) { let array = await router.getRoutes();