Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/8216

Vanessa7572db401284
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index 752f6011ed..74f63193b8 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -94,7 +94,7 @@ export class Protyle {
reloadProtyle(this.protyle, false);
}
break;
- case "addLoadding":
+ case "addLoading":
if (data.data === this.protyle.block.rootID) {
addLoading(this.protyle, data.msg);
}
diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go
index bd95726ef2..68dfdaac96 100644
--- a/kernel/util/websocket.go
+++ b/kernel/util/websocket.go
@@ -219,7 +219,7 @@ func PushProtyleReload(rootID string) {
}
func PushProtyleLoading(rootID, msg string) {
- BroadcastByType("protyle", "addLoadding", 0, msg, rootID)
+ BroadcastByType("protyle", "addLoading", 0, msg, rootID)
}
func PushDownloadProgress(id string, percent float32) {