diff --git a/packages/effects/layouts/src/basic/tabbar/use-tabbar.ts b/packages/effects/layouts/src/basic/tabbar/use-tabbar.ts index c27380dd..020c72dc 100644 --- a/packages/effects/layouts/src/basic/tabbar/use-tabbar.ts +++ b/packages/effects/layouts/src/basic/tabbar/use-tabbar.ts @@ -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 },