瀏覽代碼

优化首页的代码

jishenghua 8 月之前
父節點
當前提交
bee8eec0da
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      gyj-iot-web/src/views/index.vue

+ 1 - 2
gyj-iot-web/src/views/index.vue

@@ -356,7 +356,7 @@ function getmap() {
     var res = [];
     for (var i = 0; i < data.length; i++) {
       var geoCoord = [data[i].longitude, data[i].latitude];
-      if (geoCoord && data[i].status == status) {
+      if (geoCoord && data[i].status === status) {
         res.push({
           name: data[i].deviceName,
           value: geoCoord,
@@ -368,7 +368,6 @@ function getmap() {
           productName: data[i].productName,
           activeTime: data[i].activeTime == null ? '' : data[i].activeTime,
           deviceId: data[i].deviceId,
-          serialNumber: data[i].serialNumber,
           locationWay: data[i].locationWay,
         });
       }