修复后端返回路由 component 字段为空导致link导航失效

This commit is contained in:
Hooray Hu
2023-09-15 00:21:54 +08:00
parent 7266776081
commit 3372a85d5e
+3
View File
@@ -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)