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 @@ 保存配置 - +