mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
@@ -104,9 +104,10 @@ export function useTabbar() {
|
|||||||
const routes = router.getRoutes();
|
const routes = router.getRoutes();
|
||||||
const currentRoute = routes.find((item) => item.path === route.path);
|
const currentRoute = routes.find((item) => item.path === route.path);
|
||||||
if (currentRoute) {
|
if (currentRoute) {
|
||||||
tabbarStore.addTab(
|
tabbarStore.addTab({
|
||||||
currentRoute as unknown as RouteLocationNormalizedGeneric,
|
...route,
|
||||||
);
|
meta: currentRoute.meta,
|
||||||
|
} as unknown as RouteLocationNormalizedGeneric);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true },
|
{ immediate: true },
|
||||||
|
Reference in New Issue
Block a user