mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix(sidebar): optimize sidebar menu open keys handling #906
This commit is contained in:
parent
2026f0d3ac
commit
5460885bd6
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ watch(route, () => {
|
||||||
const sub = openSub()
|
const sub = openSub()
|
||||||
const p = openKeys.value.indexOf(sub)
|
const p = openKeys.value.indexOf(sub)
|
||||||
if (p === -1)
|
if (p === -1)
|
||||||
openKeys.value.push(sub)
|
openKeys.value = [sub]
|
||||||
})
|
})
|
||||||
|
|
||||||
const sidebars = computed(() => {
|
const sidebars = computed(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue