diff --git a/frontend/src/views/home/components/preTest.vue b/frontend/src/views/home/components/preTest.vue index a6a2a11..14b8fb6 100644 --- a/frontend/src/views/home/components/preTest.vue +++ b/frontend/src/views/home/components/preTest.vue @@ -573,6 +573,22 @@ watch(webMsgSend, function (newValue, oldValue) { ts.value = 'error' step5.value = 'error' break; + case 'socket_timeout': + ElMessageBox.alert(`设备连接异常,请检查设备连接情况!`, '检测失败', { + confirmButtonText: '确定', + type: 'error', + }) + ts.value = 'error' + step5.value = 'error' + break; + case 'server_error': + ElMessageBox.alert('服务端主动关闭连接!', '初始化失败', { + confirmButtonText: '确定', + type: 'error', + }) + ts.value = 'error' + step5.value = 'error' + break; } } }) diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 8936753..6e7b250 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -448,7 +448,7 @@ watch(webMsgSend, function (newValue, oldValue) { switch (newValue.requestId) { case 'server_error': if (newValue.operateCode === 'server_error' && count === 0) { - ElMessageBox.alert('源连接失败!', '初始化失败', { + ElMessageBox.alert('服务端主动关闭连接!', '初始化失败', { confirmButtonText: '确定', type: 'error', })