From 506eca74e45718eae886de27597139ca6e45b548 Mon Sep 17 00:00:00 2001 From: shinya Date: Thu, 7 Aug 2025 22:06:54 +0800 Subject: [PATCH] fix: clear timeout --- VERSION.txt | 2 +- src/lib/douban.ts | 1 + src/lib/version.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index e31f30e..7f02519 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -20250807220314 \ No newline at end of file +20250807220654 \ No newline at end of file diff --git a/src/lib/douban.ts b/src/lib/douban.ts index ee5e8f4..d804cea 100644 --- a/src/lib/douban.ts +++ b/src/lib/douban.ts @@ -36,6 +36,7 @@ export async function fetchDoubanData(url: string): Promise { )}`; try { const fallbackResponse = await fetch(fallbackUrl, fetchOptions); + clearTimeout(timeoutId); if (!fallbackResponse.ok) { throw new Error(`HTTP error! Status: ${fallbackResponse.status}`); } diff --git a/src/lib/version.ts b/src/lib/version.ts index 71c690f..f9fb38f 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -2,7 +2,7 @@ 'use client'; -const CURRENT_VERSION = '20250807220314'; +const CURRENT_VERSION = '20250807220654'; // 版本检查结果枚举 export enum UpdateStatus {