fix: clear timeout

This commit is contained in:
shinya
2025-08-07 22:06:54 +08:00
parent 13082212cc
commit 506eca74e4
3 changed files with 3 additions and 2 deletions

View File

@@ -1 +1 @@
20250807220314
20250807220654

View File

@@ -36,6 +36,7 @@ export async function fetchDoubanData<T>(url: string): Promise<T> {
)}`;
try {
const fallbackResponse = await fetch(fallbackUrl, fetchOptions);
clearTimeout(timeoutId);
if (!fallbackResponse.ok) {
throw new Error(`HTTP error! Status: ${fallbackResponse.status}`);
}

View File

@@ -2,7 +2,7 @@
'use client';
const CURRENT_VERSION = '20250807220314';
const CURRENT_VERSION = '20250807220654';
// 版本检查结果枚举
export enum UpdateStatus {