From ddb36e54bd51761138c536ccca889d3f80182334 Mon Sep 17 00:00:00 2001 From: lin <18010473990@163.com> Date: 星期六, 08 一月 2022 16:47:20 +0800 Subject: [PATCH] 级联平台添加GPS订阅支持 --- web_src/src/components/DeviceList.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web_src/src/components/DeviceList.vue b/web_src/src/components/DeviceList.vue index f064950..586aaee 100644 --- a/web_src/src/components/DeviceList.vue +++ b/web_src/src/components/DeviceList.vue @@ -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' }); } -- Gitblit v1.8.0