mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 14:57:52 +08:00
修复后端返回路由 component 字段为空导致link导航失效
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user