revert: reset to 32bee87 for clean text_bbox baseline

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
DocAuditAI Dev
2026-03-23 18:13:59 +08:00
parent 6563686bb3
commit ebcaf05625
10 changed files with 100 additions and 228 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
import axios, { AxiosRequestConfig, AxiosResponse, isAxiosError } from 'axios';
import http from 'http';
import { mockData, type MockApiResponse } from './mock';
import { API_BASE_URL, DOCUMENT_URL } from '../config/api-config';
import { toastService } from '../components/ui/Toast';
@@ -42,9 +41,7 @@ const axiosInstance = axios.create({
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
// 修复 ECONNRESET: 禁用 keep-alive 复用,避免后端关闭空闲连接后前端仍复用导致 reset
httpAgent: new http.Agent({ keepAlive: false }),
}
});
// 请求白名单 - 这些接口不需要添加 Authorization 头