mirror of
https://github.com/siyuan-note/plugin-sample-vite-svelte.git
synced 2025-06-08 02:46:02 +00:00
fix: api.getFile
This commit is contained in:
parent
14f3cf2f69
commit
94469c4d5e
1 changed files with 2 additions and 1 deletions
|
@ -308,7 +308,8 @@ export async function getFile(path: string): Promise<any> {
|
||||||
path: path
|
path: path
|
||||||
}
|
}
|
||||||
let url = '/api/file/getFile';
|
let url = '/api/file/getFile';
|
||||||
return request(url, data);
|
let file = await fetchSyncPost(url, data);
|
||||||
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function putFile(path: string, isDir: boolean, file: any) {
|
export async function putFile(path: string, isDir: boolean, file: any) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue