From 275ad9f14e8fa75620ff35c906c06c616fb2104f Mon Sep 17 00:00:00 2001 From: vben <anncwb@126.com> Date: 星期日, 01 十一月 2020 12:27:15 +0800 Subject: [PATCH] fix: fix the problem of closing multiple tabs --- src/utils/helper/routeHelper.ts | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/utils/helper/routeHelper.ts b/src/utils/helper/routeHelper.ts index 3927d31..4cce1eb 100644 --- a/src/utils/helper/routeHelper.ts +++ b/src/utils/helper/routeHelper.ts @@ -28,10 +28,6 @@ const flatList = (toRaw(router.getRoutes()).filter( (item) => item.children.length === 0 ) as unknown) as AppRouteRecordRaw[]; - try { - (router as any) = null; - } catch (error) {} - flatList.forEach((item) => { item.path = `${layout ? layout.path : ''}${item.path}`; }); -- Gitblit v1.8.0