fix: update axios baseURL to remove default localhost value

This commit is contained in:
2026-01-02 12:38:26 +08:00
parent 08e894c9ae
commit b5845384f3
+1 -1
View File
@@ -2,7 +2,7 @@ import axios from 'axios'
// 创建 axios 实例 // 创建 axios 实例
const client = axios.create({ const client = axios.create({
baseURL: import.meta.env.VITE_API_BASE_URL || 'http://localhost:8000', baseURL: import.meta.env.VITE_API_BASE_URL || '',
timeout: 30000, timeout: 30000,
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',