Update WebSocket configuration to use environment variable for URL instead of hardcoded value.

This commit is contained in:
超级老白兔
2025-11-03 10:31:31 +08:00
parent a8ba45c08a
commit 998e65d98d

View File

@@ -76,7 +76,7 @@ interface WebSocketState {
// 默认配置
const DEFAULT_CONFIG: WebSocketConfig = {
url: "wss://kf.quwanzhi.com:9993",
url: (import.meta as any).env?.VITE_API_WS_URL,
client: "kefu-client",
accountId: 0,
accessToken: "",