mirror of
https://gitee.com/honghuangdc/soybean-admin-element-plus.git
synced 2025-12-30 10:22:25 +00:00
fix(projects): 🐛 fix the menu switching collapse issue. fixed [#111]
This commit is contained in:
@@ -94,9 +94,11 @@ export function useMenu() {
|
||||
|
||||
routerPushByKeyWithMetaQuery(key);
|
||||
|
||||
nextTick(() => {
|
||||
selectedKeyDummy.value = selectedKey.value;
|
||||
});
|
||||
if (key.endsWith('-link')) {
|
||||
nextTick(() => {
|
||||
selectedKeyDummy.value = selectedKey.value;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -142,6 +142,7 @@ const customRoutes: CustomRoute[] = [
|
||||
i18nKey: 'route.document_project-link',
|
||||
order: 2,
|
||||
localIcon: 'logo',
|
||||
// use href to open the page, the routeName must be ends with '-link'
|
||||
href: 'https://docs.soybeanjs.cn/zh'
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user