This commit is contained in:
@@ -2,7 +2,7 @@ import axios from 'axios';
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: import.meta.env.VITE_API_URL || 'http://localhost:8000/api',
|
||||
timeout: 8000, // 增加超时时间到 10秒
|
||||
timeout: 120000, // 大文件上传需要更长超时时间 2分钟
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user