This commit is contained in:
dap
2024-08-10 18:38:55 +08:00
3 changed files with 7 additions and 6 deletions

View File

@@ -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 },