From a485d339336f92b36acb7c8481a0ea416cea575b Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 4 Jul 2026 16:41:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend)=EF=BC=9Aaxios=20=E8=B6=85?= =?UTF-8?q?=E6=97=B6=20600s=20+=20=E5=9B=9E=E5=BF=86=E5=AF=B9=E6=AF=94?= =?UTF-8?q?=E5=88=86=E6=AE=B5=E5=8A=A0=E8=BD=BD=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 适配后台异步任务轮询模式: - axios 全局超时 180s → 600s(与 Java 后台 10min 轮询超时匹配) - 回忆对比加载提示改为分段文案: 0-3s: 正在提交 AI 任务… 3-60s: AI 对比分析中,请稍候… 60-180s: 内容较多,AI 正在深入分析… 180s+: 即将完成,请耐心等待… --- src/components/ReviewRecall.vue | 6 ++++-- src/utils/request.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/ReviewRecall.vue b/src/components/ReviewRecall.vue index eca1cb6..b98d6fb 100644 --- a/src/components/ReviewRecall.vue +++ b/src/components/ReviewRecall.vue @@ -334,8 +334,10 @@ onMounted(() => {

- AI 正在对比分析中,已等待 {{ comparingSeconds }} 秒… - + + + +

diff --git a/src/utils/request.ts b/src/utils/request.ts index 7b64b5c..37713f3 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -6,7 +6,7 @@ const basic_url = import.meta.env.VITE_BASE_URL; const axiosInstance = axios.create({ baseURL: basic_url, - timeout: 180000, + timeout: 600000, withCredentials: true });