fix: 优化菜单跳转
This commit is contained in:
parent
d9f67af30b
commit
69dfc01b0d
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue