diff --git a/src/api.ts b/src/api.ts index e8a007a..0fcd147 100644 --- a/src/api.ts +++ b/src/api.ts @@ -308,7 +308,8 @@ export async function getFile(path: string): Promise { path: path } 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) {