diff --git a/frontend/src/views/communicationSetting/index.vue b/frontend/src/views/communicationSetting/index.vue index 293abea..3bf1c7c 100644 --- a/frontend/src/views/communicationSetting/index.vue +++ b/frontend/src/views/communicationSetting/index.vue @@ -123,7 +123,7 @@ const handlePasswordConfirm = async () => { try { if (currentType.value === 'net') { const res = await saveDeviceNet([formData.value, formDataRight.value]) - if (res.code === 200) { + if (res.send_status === '成功') { ElMessage({ type: 'success', message: '网卡配置保存成功', @@ -136,7 +136,7 @@ const handlePasswordConfirm = async () => { } } else { const res = await saveDeviceUart([formData2.value, formData2Right.value]) - if (res.code === 200) { + if (res.send_status === '成功') { ElMessage({ type: 'success', message: '串口配置保存成功',