预检测出现连接超时错误提示

This commit is contained in:
caozehui
2025-05-12 14:38:25 +08:00
parent bb35eb749b
commit f0b3bdd37c
2 changed files with 17 additions and 1 deletions

View File

@@ -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;
}
}
})

View File

@@ -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',
})