路由优化

This commit is contained in:
zhang zhuo 2025-12-24 17:52:57 +08:00
parent cb1afcd3d4
commit aad014e54f
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ const viewTagsStore = defineStore("viewTags", {
}, },
query: route.query, query: route.query,
params: route.params, params: route.params,
hash: route.hash hash: route.hash,
props: route.props
} }
if(backPathIndex == -1){ if(backPathIndex == -1){
this.viewTags.push(_route) this.viewTags.push(_route)

View File

@ -53,7 +53,7 @@ export function filterAsyncRouter(routerMap) {
component: loadComponent(item.component) component: loadComponent(item.component)
} }
if (item.path.includes(':')) { if (item.path.includes(':')) {
item['props'] = true route['props'] = true
} }
accessedRouters.push(route) accessedRouters.push(route)
}) })