This commit is contained in:
lloydzhou 2024-09-25 20:03:18 +08:00
parent 9bd1635064
commit 7f857284bb

View File

@ -294,7 +294,7 @@ export function adapter(config: Record<string, unknown>) {
? `${path}?${new URLSearchParams(params as any).toString()}`
: path;
if (window.__TAURI__) {
return tauriFetch(fetchUrl, rest)
return tauriFetch(fetchUrl as string, rest)
.then((res) => res.text())
.then((data: any) => ({ data }));
}