mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
b3b5bbbc2b
commit
b68756261d
1 changed files with 4 additions and 0 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue