fix: 优化菜单跳转

This commit is contained in:
XieYongHong 2023-07-24 09:34:53 +08:00
parent d9f67af30b
commit 69dfc01b0d
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
v-bind="layoutConf"
v-model:collapsed="basicLayout.collapsed"
v-model:openKeys="basicLayout.openKeys"
v-model:selectedKeys="basicLayout.selectedKeys"
:selectedKeys="basicLayout.selectedKeys"
:headerHeight='layout.headerHeight'
:breadcrumb="{ routes: breadcrumbs }"
:pure="basicLayout.pure"

View File

@ -456,7 +456,7 @@ const parentTabsChange = (next?: Function) => {
(next as Function)?.()
} else {//
const paths = router.currentRoute.value.matched
basicLayout.value.selectedKeys = paths.map(item => item.path)
// basicLayout.value.selectedKeys = paths.map(item => item.path)
basicLayout.value.openKeys = paths.map(item => item.path)
}
}