浏览代码

fix: 刷新小车

TwoKe945 1 年之前
父节点
当前提交
41344d6345
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/cardIot/Map/index.vue

+ 3 - 3
src/views/cardIot/Map/index.vue

@@ -300,9 +300,9 @@ export default {
           cache[car.id] = marker
           that.markeList = Object.values(cache)
           that.map.add(marker)
-          // that.timer = setTimeout(() => {
-          //   refreshFireCar()
-          // }, 10 * 1000)
+          that.timer = setTimeout(() => {
+            refreshFireCar()
+          }, 10 * 1000)
         })
       }
       refreshFireCar()