fix(projects): 🐛 fix the menu switching collapse issue. fixed [#111]

This commit is contained in:
一寸灰
2025-06-30 17:57:04 +08:00
committed by GitHub
parent c95d5f9857
commit 020f57c44f
2 changed files with 6 additions and 3 deletions

View File

@@ -94,9 +94,11 @@ export function useMenu() {
routerPushByKeyWithMetaQuery(key);
nextTick(() => {
selectedKeyDummy.value = selectedKey.value;
});
if (key.endsWith('-link')) {
nextTick(() => {
selectedKeyDummy.value = selectedKey.value;
});
}
}
return {

View File

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