From 94469c4d5e16180089344a5b0e8bc75407d1932c Mon Sep 17 00:00:00 2001 From: frostime Date: Mon, 22 May 2023 21:22:32 +0800 Subject: [PATCH] fix: api.getFile --- src/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {