Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-19 09:57:41 +08:00
parent 0ffa864c8f
commit b4e10e5704
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 17 additions and 5 deletions

View file

@ -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;