Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-20 16:33:22 +08:00
parent b3b5bbbc2b
commit b68756261d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 = {};