diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index ad7906d..8ecb224 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -943,24 +943,7 @@ const handleTest = async (val: string) => { dialogTitle.value = val if (val === '手动检测') { - if (!socketClient.Instance) { - console.error('WebSocket 客户端实例不存在'); - return; - } - - socketClient.Instance.connect(); - dataSocket.socketServe = socketClient.Instance; - dataSocket.socketServe.registerCallBack('aaa', (res: { code: number; }) => { - // 处理来自服务器的消息 - //console.log('Received message:', res) - // 根据需要在这里添加更多的处理逻辑 - if (res.code === 20000) { - ElMessage.error(message.message) - loading.close() - } else { - webMsgSend.value = res - } - }) + if (testType === 'reTest') { ElMessageBox.confirm('请选择复检检测方式', '设备复检', { diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue index b47587d..1d7dc09 100644 --- a/frontend/src/views/home/components/testPopup.vue +++ b/frontend/src/views/home/components/testPopup.vue @@ -15,7 +15,7 @@ :webMsgSend="webMsgSend"/> - +