hotfix for run plugin call post api

This commit is contained in:
lloydzhou
2024-09-30 15:32:47 +08:00
parent 35e03e1bca
commit 3029dcb2f6
2 changed files with 13 additions and 10 deletions

View File

@@ -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,