优化
This commit is contained in:
@@ -22,8 +22,6 @@ const activeParentKeys = computed(() => new Set(getNavigationParentKeys(visibleN
|
||||
const openedKeys = ref<ReadonlySet<string>>(new Set(activeParentKeys.value))
|
||||
|
||||
function handleToggle(key: string) {
|
||||
if (activeParentKeys.value.has(key)) return
|
||||
|
||||
const next = new Set(openedKeys.value)
|
||||
if (next.has(key)) next.delete(key)
|
||||
else next.add(key)
|
||||
|
||||
Reference in New Issue
Block a user