Browse Source

hotfix for run plugin call post api

lloydzhou 1 năm trước cách đây
mục cha
commit
d830c23dab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/utils.ts

+ 1 - 1
app/utils.ts

@@ -295,7 +295,7 @@ export function fetch(
   if (window.__TAURI__) {
     return tauriStreamFetch(url, {
       ...options,
-      body: options?.body || options?.data,
+      body: (options?.body || options?.data) as any,
     });
     // const payload = options?.body || options?.data;
     // return tauriFetch(url, {