提交代码

This commit is contained in:
zlwu committed 2025-07-30 22:15:31 +08:00
1 parent 8fa9be8f9d
commit daae3039ab
23 files changed
+2760 -10

No files matched your search

+3 -2
View File
@@ -28,7 +28,7 @@ axios.defaults.headers['clientid'] = import.meta.env.VITE_APP_CLIENT_ID;
// 创建 axios 实例
const service = axios.create({
baseURL: import.meta.env.VITE_APP_BASE_API,
timeout: 50000
timeout: 300000 // 增加到5分钟,适合大数据量导出
});
// 请求拦截器
@@ -194,7 +194,8 @@ export function download(url: string, params: any, fileName: string) {
}
],
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
responseType: 'blob'
responseType: 'blob',
timeout: 1200000 // 导出接口单独设置20分钟超时
}).then(async (resp: any) => {
const isLogin = blobValidate(resp);
if (isLogin) {