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)