mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-22 09:33:41 +08:00
feat(route): 路由meta新增activeMenu属性
This commit is contained in:
@@ -21,7 +21,7 @@ const theme = useThemeStore();
|
||||
const { routerPush } = useRouterPush();
|
||||
|
||||
const menus = computed(() => routeStore.menus as GlobalMenuOption[]);
|
||||
const activeKey = computed(() => route.name as string);
|
||||
const activeKey = computed(() => (route.meta?.activeMenu ? route.meta.activeMenu : route.name) as string);
|
||||
|
||||
function handleUpdateMenu(_key: string, item: MenuOption) {
|
||||
const menuItem = item as GlobalMenuOption;
|
||||
|
Reference in New Issue
Block a user