Update API and WebSocket base URLs to use environment variables for better configuration management

This commit is contained in:
2026-01-30 00:45:04 +08:00
parent 197ce5e7ea
commit 246515b43e
11 changed files with 310 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import axios from 'axios';
import { ElMessage } from 'element-plus';
const request = axios.create({
baseURL: 'http://localhost:8080',
baseURL: import.meta.env.VITE_API_BASE_URL ?? 'http://localhost:8080',
timeout: 30000,
headers: {
'Content-Type': 'application/json'