Commit ec49a041 by Netfan Committed by GitHub

fix: use correct route data in tabbar, fixed: #4107 (#4110)

1 parent 4d4327cb
......@@ -104,9 +104,10 @@ export function useTabbar() {
const routes = router.getRoutes();
const currentRoute = routes.find((item) => item.path === route.path);
if (currentRoute) {
tabbarStore.addTab(
currentRoute as unknown as RouteLocationNormalizedGeneric,
);
tabbarStore.addTab({
...route,
meta: currentRoute.meta,
} as unknown as RouteLocationNormalizedGeneric);
}
},
{ immediate: true },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!