From 3372a85d5e52253aa2976642e6563debb5d12da7 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Fri, 15 Sep 2023 00:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E7=AB=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E8=B7=AF=E7=94=B1=20component=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E5=AF=BC=E8=87=B4link=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/modules/route.ts b/src/store/modules/route.ts index c8d1b9154..1ab939881 100644 --- a/src/store/modules/route.ts +++ b/src/store/modules/route.ts @@ -187,6 +187,9 @@ const useRouteStore = defineStore( if (route.component) { route.component = views[`../../views/${route.component}`] } + else { + delete route.component + } } if (route.children) { route.children = formatBackRoutes(route.children, views)