fix: 优化菜单跳转
This commit is contained in:
parent
d9f67af30b
commit
69dfc01b0d
|
@ -3,7 +3,7 @@
|
||||||
v-bind="layoutConf"
|
v-bind="layoutConf"
|
||||||
v-model:collapsed="basicLayout.collapsed"
|
v-model:collapsed="basicLayout.collapsed"
|
||||||
v-model:openKeys="basicLayout.openKeys"
|
v-model:openKeys="basicLayout.openKeys"
|
||||||
v-model:selectedKeys="basicLayout.selectedKeys"
|
:selectedKeys="basicLayout.selectedKeys"
|
||||||
:headerHeight='layout.headerHeight'
|
:headerHeight='layout.headerHeight'
|
||||||
:breadcrumb="{ routes: breadcrumbs }"
|
:breadcrumb="{ routes: breadcrumbs }"
|
||||||
:pure="basicLayout.pure"
|
:pure="basicLayout.pure"
|
||||||
|
|
|
@ -456,7 +456,7 @@ const parentTabsChange = (next?: Function) => {
|
||||||
(next as Function)?.()
|
(next as Function)?.()
|
||||||
} else {// 右上角取消按钮
|
} else {// 右上角取消按钮
|
||||||
const paths = router.currentRoute.value.matched
|
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)
|
basicLayout.value.openKeys = paths.map(item => item.path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue