Skip to content

Commit c1af9c6

Browse files
committed
feat: 增加请求超时时间至10秒,以改善网络延迟处理
1 parent b1e32c0 commit c1af9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useUserStoreHook } from "@/store/modules/user";
88
// 创建 axios 实例
99
const service = axios.create({
1010
baseURL: import.meta.env.VITE_APP_BASE_API,
11-
timeout: 5000,
11+
timeout: 10000,
1212
headers: { "Content-Type": "application/json;charset=utf-8" },
1313
paramsSerializer: (params) => qs.stringify(params),
1414
});

0 commit comments

Comments
 (0)