fix: api.getFile

This commit is contained in:
frostime 2023-05-22 21:22:32 +08:00
parent 14f3cf2f69
commit 94469c4d5e

View file

@ -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) {