Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16149

Danielb68756261dfc
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index 24041baa50..8796c0569f 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -277,6 +277,10 @@ export class Plugin {
}
public removeData(storageName: string) {
+ if (window.siyuan.config.readonly || window.siyuan.isPublish) {
+ return;
+ }
+
return new Promise((resolve) => {
if (!this.data) {
this.data = {};