This commit is contained in:
caozehui
2025-03-11 16:13:03 +08:00
parent 9af98b034f
commit f94372d20b
2 changed files with 5 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ export default class SocketService {
// let token = '4E6EF539AAF119D82AC4C2BC84FBA21F'; // let token = '4E6EF539AAF119D82AC4C2BC84FBA21F';
const url = 'ws://192.168.1.124:7777/hello?name=cdf' const url = 'ws://127.0.0.1:7777/hello?name=cdf'
this.ws = new WebSocket(url); this.ws = new WebSocket(url);
// 连接成功的事件 // 连接成功的事件
this.ws.onopen = () => { this.ws.onopen = () => {

View File

@@ -238,6 +238,10 @@ watch(webMsgSend, function (newValue, oldValue) {
switch (newValue.operateCode) { switch (newValue.operateCode) {
case "Source": case "Source":
ElMessage.error('源连接失败!') ElMessage.error('源连接失败!')
connectDisabeld.value = false
startDisabeld.value = true
pauseDisabled.value = true
break;
} }
break; break;
case 'server_error': case 'server_error':