Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/8889

Vanessa74a6c49f3f3e
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 3d9f205fef..c741b2d006 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -352,7 +352,8 @@ export class Files extends Model {
selectElements.forEach((item: HTMLElement, index) => {
ghostElement.append(item.cloneNode(true));
item.style.opacity = "0.1";
- const itemNodeId = item.dataset.nodeId || item.dataset.path;
+ const itemNodeId = item.dataset.nodeId ||
+ item.dataset.path; // 拖拽笔记本时值不能为空,否则 drop 就不会继续排序
if (itemNodeId) {
ids += itemNodeId;
if (index < selectElements.length - 1) {