diff options
| author | Larvan2 <[email protected]> | 2026-06-04 21:25:02 +0800 |
|---|---|---|
| committer | Larvan2 <[email protected]> | 2026-06-04 21:25:02 +0800 |
| commit | a8f8bb1d6b9925425b5b1121de0ea1c0de1645ed (patch) | |
| tree | 0ff036d5c79f4315f715231c78f9557419c83bc8 /src/api/configs.ts | |
| parent | cc6efa25afc9853771565a5f68d1cc24b3a945b2 (diff) | |
Diffstat (limited to 'src/api/configs.ts')
| -rw-r--r-- | src/api/configs.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/configs.ts b/src/api/configs.ts index 3995aa7..63a88c7 100644 --- a/src/api/configs.ts +++ b/src/api/configs.ts @@ -9,9 +9,9 @@ const upgradeCoreEndpoint = '/upgrade'; const upgradeGeoEndpoint = '/upgrade/geo'; const upgradeUIEndpoint = '/upgrade/ui'; -export async function fetchConfigs(apiConfig: ClashAPIConfig) { +export async function fetchConfigs(apiConfig: ClashAPIConfig, signal?: AbortSignal) { const { url, init } = getURLAndInit(apiConfig); - return await fetch(url + endpoint, init); + return await fetch(url + endpoint, { ...init, signal }); } // TODO support PUT /configs |
