Skip to content

Commit

Permalink
修复后端返回路由 component 字段为空导致link导航失效
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Sep 14, 2023
1 parent 7266776 commit 3372a85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store/modules/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3372a85

Please sign in to comment.