mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🚨
This commit is contained in:
@@ -74,6 +74,9 @@ export class Plugin {
|
||||
|
||||
public saveData(storageName: string, data: any) {
|
||||
return new Promise((resolve) => {
|
||||
if (!this.data) {
|
||||
this.data = {};
|
||||
}
|
||||
const pathString = `/data/storage/petal/${this.name}/${storageName}`;
|
||||
const file = new File([new Blob([data])], pathString.split("/").pop());
|
||||
const formData = new FormData();
|
||||
|
||||
Reference in New Issue
Block a user