mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 00:47:28 +08:00
hotfix for run plugin call post api
This commit is contained in:
@@ -293,7 +293,10 @@ export function fetch(
|
||||
options?: Record<string, unknown>,
|
||||
): Promise<any> {
|
||||
if (window.__TAURI__) {
|
||||
return tauriStreamFetch(url, options);
|
||||
return tauriStreamFetch(url, {
|
||||
...options,
|
||||
body: options?.body || options?.data,
|
||||
});
|
||||
// const payload = options?.body || options?.data;
|
||||
// return tauriFetch(url, {
|
||||
// ...options,
|
||||
|
Reference in New Issue
Block a user