From 5f7728d094049e21b29e2229c690511444abb4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Tue, 22 Mar 2022 00:16:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(router/index.ts):=20=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=97=A0=E6=B3=95=E8=AE=BF=E9=97=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 6d9d3ce2..cd7bfa38 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -108,12 +108,13 @@ const router = createRouter({ // 重置路由 export function resetRouter() { - router.getRoutes().forEach((route) => { + //TODO + /* router.getRoutes().forEach((route) => { const name = route.name if (name) { router.hasRoute(name) && router.removeRoute(name) } - }) + }) */ } export default router \ No newline at end of file