diff --git a/frontend/src/utils/webSocketClient.ts b/frontend/src/utils/webSocketClient.ts index 209cc89..8d115e6 100644 --- a/frontend/src/utils/webSocketClient.ts +++ b/frontend/src/utils/webSocketClient.ts @@ -410,12 +410,6 @@ export default class SocketService { } -<<<<<<< HEAD - const url = 'ws://127.0.0.1:7777/hello?name=cdf' - //const url = 'ws://192.168.1.124:7777/hello?name=cdf' - this.ws = new WebSocket(url); - // 连接成功的事件 -======= // ======================================================================== // 私有方法 (Private Methods) // ======================================================================== @@ -492,7 +486,6 @@ export default class SocketService { if (!this.ws) return; // 连接成功事件 ->>>>>>> d6d63523a3b094a6b60ea32f7779cb3888d13923 this.ws.onopen = () => { ElMessage.success("webSocket连接服务端成功了"); console.log('连接服务端成功了');