Skip to content

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

:zap: https://github.com/siyuan-note/siyuan/issues/8501

Vanessa4f8e438138de
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 237c61f153..bdbe0d2493 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -67,10 +67,11 @@ const promiseTransaction = () => {
undoOperations // 目前用于 ws 推送更新大纲
}]
}, (response) => {
- if (window.siyuan.transactions.length !== 0) {
+ if (window.siyuan.transactions.length === 0) {
+ countBlockWord([], protyle.block.rootID, true);
+ } else {
promiseTransaction();
}
- countBlockWord([], protyle.block.rootID, true);
/// #if MOBILE
if ((0 !== window.siyuan.config.sync.provider || (0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {