From 9f0d3d0a2a10970739ba384af35d9af8d9137ead Mon Sep 17 00:00:00 2001 From: hehh Date: Wed, 26 Nov 2025 12:41:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(about):=20=E8=B0=83=E6=95=B4GitHub=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将GitHub用户数据请求的超时时间从5秒调整为1秒 - 优化用户体验,减少等待时间 - 确保快速失败,提高页面响应速度 --- js/about.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/about.js b/js/about.js index 3046515..4454d3b 100644 --- a/js/about.js +++ b/js/about.js @@ -268,7 +268,7 @@ class DataManager { try { // Parallel Fetch with timeout - const uRes = await this.fetchWithTimeout(`https://api.github.com/users/${user}`, { timeout: 5000 }); + const uRes = await this.fetchWithTimeout(`https://api.github.com/users/${user}`, { timeout: 1000 }); const userData = uRes.ok ? await uRes.json() : (window.SiteConfig?.defaults?.user); let allRepos = []; let page = 1;