Skip to content

Commit 5460885

Browse files
committed
fix(sidebar): optimize sidebar menu open keys handling #906
1 parent 2026f0d commit 5460885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/layouts/SideBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ watch(route, () => {
2626
const sub = openSub()
2727
const p = openKeys.value.indexOf(sub)
2828
if (p === -1)
29-
openKeys.value.push(sub)
29+
openKeys.value = [sub]
3030
})
3131
3232
const sidebars = computed(() => {

0 commit comments

Comments
 (0)