mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
update
This commit is contained in:
@@ -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 }));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user