From b68756261dfc3ba75833c7cd843f17b2277c1492 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 20 Oct 2025 16:33:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16149 Signed-off-by: Daniel <845765@qq.com> --- app/src/plugin/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts index 24041baa5..8796c0569 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 = {};