From 265c24198599a38b601a0469aeb10eb4f2d84c1b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 20 May 2026 12:07:53 +0800 Subject: [PATCH] :recycle: https://github.com/siyuan-note/siyuan/pull/17572 --- app/src/util/fetch.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/util/fetch.ts b/app/src/util/fetch.ts index 4570ad1d1..29a4a44ec 100644 --- a/app/src/util/fetch.ts +++ b/app/src/util/fetch.ts @@ -11,10 +11,9 @@ export const fetchPost = ( cb?: (response: IWebSocketData) => void, headers?: IObject, failCallback?: (response: IWebSocketData) => void, - abortSignal?: AbortSignal) => { + signal?: AbortSignal) => { const init: RequestInit = { method: "POST", - signal: abortSignal, }; if (data) { if (["/api/search/searchRefBlock", "/api/graph/getGraph", "/api/graph/getLocalGraph", @@ -39,6 +38,9 @@ export const fetchPost = ( if (headers) { init.headers = headers; } + if (signal) { + init.signal = signal; + } let isGetFile202 = false; fetch(url, init).then((response) => { switch (response.status) {