fix:name
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m8s

This commit is contained in:
sexygoat
2026-05-07 17:34:06 +08:00
parent 90d415cfb9
commit 78fe35da01
12 changed files with 57 additions and 755 deletions

View File

@@ -7,7 +7,7 @@ import type { RequestOptions, ErrorMessageMode } from '@/types/api'
const axiosInstance = axios.create({
timeout: 15000, // 请求超时时间(毫秒)
baseURL: import.meta.env.MODE === 'development' ? '' : import.meta.env.VITE_API_URL, // API地址开发环境使用代理生产环境使用完整URL
withCredentials: true, // 异步请求携带cookie
withCredentials: false, // 异步请求携带cookie
transformRequest: [
(data, headers) => {
// 如果是 FormData,不进行转换