From aad014e54f4f7c0fd533af69ab36b78647826d76 Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Wed, 24 Dec 2025 17:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/viewTags.ts | 3 ++- src/utils/route.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) })