From a69b7a17a4d3d36aa45a3358ff478a727ce80b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Tue, 28 Oct 2025 11:21:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20=E9=98=B2=E6=AD=A2=E8=AF=AF?= =?UTF-8?q?=E5=88=A0=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/routers/modules/dynamicRouter.ts | 2 +- frontend/src/views/system/base/index.vue | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/routers/modules/dynamicRouter.ts b/frontend/src/routers/modules/dynamicRouter.ts index b2cf26d..c4513d8 100644 --- a/frontend/src/routers/modules/dynamicRouter.ts +++ b/frontend/src/routers/modules/dynamicRouter.ts @@ -16,7 +16,7 @@ let isInitializing = false const clearDynamicRoutes = () => { const routes = router.getRoutes() routes.forEach(route => { - if (route.name && route.name !== 'layout' && route.name !== 'login') { + if (route.name && route.name !== 'layout' && route.name !== 'login' && route.name !== 'testScriptAdd') { router.removeRoute(route.name) } }) diff --git a/frontend/src/views/system/base/index.vue b/frontend/src/views/system/base/index.vue index a75a29c..fac847c 100644 --- a/frontend/src/views/system/base/index.vue +++ b/frontend/src/views/system/base/index.vue @@ -69,7 +69,7 @@ 保存配置 - +