Skip to content

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

:recycle: https://github.com/siyuan-note/siyuan/pull/15824

Vanessae2815eb37761
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index 45da66d8d2..f4ae223abe 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -489,8 +489,8 @@ export class Wnd {
} else {
item.headElement.setAttribute("data-activetime", (new Date()).getTime().toString());
// 更新文档浏览时间
- if (currentTab.model instanceof Editor) {
- fetchPost("/api/storage/updateRecentDocViewTime", {rootID: currentTab.model.editor.protyle.block.rootID});
+ if (item.model instanceof Editor) {
+ fetchPost("/api/storage/updateRecentDocViewTime", {rootID: item.model.editor.protyle.block.rootID});
}
}
}