Save tree state

This commit is contained in:
2026-07-18 18:33:06 +02:00
parent 795512b112
commit 55a6bf7636
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
const collapsed = ref<Record<string, boolean>>({})
export function useTreeState() {
function resetTree() {
collapsed.value = {}
}
return { collapsed, resetTree }
}