diff --git a/src/store/viewTags.ts b/src/store/viewTags.ts index b506dc7..5498aa9 100644 --- a/src/store/viewTags.ts +++ b/src/store/viewTags.ts @@ -26,7 +26,8 @@ const viewTagsStore = defineStore("viewTags", { }, query: route.query, params: route.params, - hash: route.hash + hash: route.hash, + props: route.props } if(backPathIndex == -1){ this.viewTags.push(_route) diff --git a/src/utils/route.ts b/src/utils/route.ts index 59d7ff2..ed5402a 100644 --- a/src/utils/route.ts +++ b/src/utils/route.ts @@ -53,7 +53,7 @@ export function filterAsyncRouter(routerMap) { component: loadComponent(item.component) } if (item.path.includes(':')) { - item['props'] = true + route['props'] = true } accessedRouters.push(route) })