mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46: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}?${new URLSearchParams(params as any).toString()}`
|
||||||
: path;
|
: path;
|
||||||
if (window.__TAURI__) {
|
if (window.__TAURI__) {
|
||||||
return tauriFetch(fetchUrl, rest)
|
return tauriFetch(fetchUrl as string, rest)
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((data: any) => ({ data }));
|
.then((data: any) => ({ data }));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user