优化通道更新逻辑

This commit is contained in:
648540858
2021-12-28 18:54:50 +08:00
parent 7241e0d2d2
commit 726963ba77
12 changed files with 14444 additions and 39 deletions

View File

@@ -196,16 +196,16 @@
url: '/api/device/query/devices/' + itemData.deviceId + '/sync'
}).then(function(res) {
console.log("刷新设备结果:"+JSON.stringify(res));
if (!res.data.deviceId) {
if (res.data.code !==0) {
that.$message({
showClose: true,
message: res.data,
message: res.data.msg,
type: 'error'
});
}else{
that.$message({
showClose: true,
message: '请求成功',
message: res.data.msg,
type: 'success'
});
}