浏览代码

fix: 调整前端接口超时时间

周玉环 1 天之前
父节点
当前提交
d45eb679af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xinkeaboard-promotion-portal/src/utils/http.ts

+ 1 - 1
xinkeaboard-promotion-portal/src/utils/http.ts

@@ -5,7 +5,7 @@ import { showMessage } from '@/utils/common';
 // 创建 axios 实例
 const http = axios.create({
   baseURL: import.meta.env.VITE_BASE_API || '/api', // 根据环境变量配置
-  timeout: 60000 // 超时时间
+  timeout: 100000 // 超时时间
 });
 
 // 请求拦截器