fix invoke in stream.ts, upgrade package

This commit is contained in:
04041b
2024-12-11 21:49:19 -08:00
parent 3e090931d2
commit 58f103eaf6
5 changed files with 32 additions and 35 deletions

View File

@@ -74,7 +74,7 @@ export function fetch(url: string, options?: RequestInit): Promise<Response> {
for (const item of new Headers(_headers || {})) {
headers[item[0]] = item[1];
}
return window.__TAURI__
return window.__TAURI__.core
.invoke("stream_fetch", {
method: method.toUpperCase(),
url,