配置开发环境和生产环境的地址

This commit is contained in:
2026-09-30 14:22:12 +08:00
parent 064578f294
commit 5de8de007b
6 changed files with 12 additions and 6 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
let ws = null;
import { WS_URL } from "./config";
// WebSocket连接地址
const WS_URL = "ws://localhost:3000";
let ws = null;
// 建立WebSocket连接
export function connectWebSocket(token, onMessage, onOpen, onClose, onError) {