From c0c5ba8efdab009e7e38ad9a8f68a655aba28718 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Wed, 1 May 2024 22:12:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=81=E5=AE=89=E5=85=A8=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=A4=84=E7=90=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 609c6dd2..d2fdaf6a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -88,7 +88,7 @@ export function resetRouter() { router.getRoutes().forEach((route) => { const { name } = route // console.log('name', name, path) - if (name && name !== 'Home') { + if (name && !['Home', 'Setting', 'SettingProfile', 'SettingSecurity'].includes(name.toString())) { router.hasRoute(name) && router.removeRoute(name) } })