修改通讯设置
This commit is contained in:
parent
15e3dce02a
commit
162bde9fb1
@ -123,7 +123,7 @@ const handlePasswordConfirm = async () => {
|
|||||||
try {
|
try {
|
||||||
if (currentType.value === 'net') {
|
if (currentType.value === 'net') {
|
||||||
const res = await saveDeviceNet([formData.value, formDataRight.value])
|
const res = await saveDeviceNet([formData.value, formDataRight.value])
|
||||||
if (res.code === 200) {
|
if (res.send_status === '成功') {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '网卡配置保存成功',
|
message: '网卡配置保存成功',
|
||||||
@ -136,7 +136,7 @@ const handlePasswordConfirm = async () => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const res = await saveDeviceUart([formData2.value, formData2Right.value])
|
const res = await saveDeviceUart([formData2.value, formData2Right.value])
|
||||||
if (res.code === 200) {
|
if (res.send_status === '成功') {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '串口配置保存成功',
|
message: '串口配置保存成功',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user