648540858
2022-01-13 f99c9cac6afc899c244aa66897cb3bf35a2da7d6
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'
                  });
               }
@@ -213,8 +213,13 @@
               that.$refs[itemData.deviceId + 'refbtn' ].loading = false;
            }).catch(function(e) {
               console.error(e)
          that.$message({
            showClose: true,
            message: e,
            type: 'error'
          });
               that.$refs[itemData.deviceId + 'refbtn' ].loading = false;
            });;
            });
         },
         //通知设备上传媒体流
         sendDevicePush: function(itemData) {