mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/16149 https://github.com/siyuan-note/siyuan/issues/16121
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0ffa864c8f
commit
b4e10e5704
3 changed files with 17 additions and 5 deletions
|
|
@ -251,6 +251,10 @@ export class Plugin {
|
|||
}
|
||||
|
||||
public saveData(storageName: string, data: any) {
|
||||
if (window.siyuan.config.readonly || window.siyuan.isPublish) {
|
||||
return;
|
||||
}
|
||||
|
||||
return new Promise((resolve) => {
|
||||
const pathString = `/data/storage/petal/${this.name}/${storageName}`;
|
||||
let file: File;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue