路由优化
This commit is contained in:
parent
cb1afcd3d4
commit
aad014e54f
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue