fix: dynamic sidebar tree refresh after import

- reloadTreePreservingExpanded no longer replaces the whole tree,
  only patches children of expanded nodes in-place
- New refreshParentNode(nodeId) function updates a single parent's children
- createFile, duplicateItem, confirmImport use refreshParentNode instead of reloadTreePreservingExpanded
- No intermediate render where children are lost
This commit is contained in:
2026-06-03 04:34:27 +08:00
parent 81405ed61b
commit 3c9b9edf8c
3 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
background: #13131f;
}
</style>
<script type="module" crossorigin src="/assets/main-BMgCQPLa.js"></script>
<script type="module" crossorigin src="/assets/main-BZ3I06Px.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-DsSP02cl.css">
</head>
<body>