Skip to content

Commit 94469c4

Browse files
committed
fix: api.getFile
1 parent 14f3cf2 commit 94469c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ export async function getFile(path: string): Promise<any> {
308308
path: path
309309
}
310310
let url = '/api/file/getFile';
311-
return request(url, data);
311+
let file = await fetchSyncPost(url, data);
312+
return file;
312313
}
313314

314315
export async function putFile(path: string, isDir: boolean, file: any) {

0 commit comments

Comments
 (0)