mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
update
This commit is contained in:
parent
9bd1635064
commit
7f857284bb
@ -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 }));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user