Преглед изворни кода

继续:热点列表页数据加载逻辑优化

任一存 пре 2 година
родитељ
комит
1fecf56daf
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/views/gui/CustomHotspotList.vue

+ 3 - 0
src/views/gui/CustomHotspotList.vue

@@ -45,6 +45,9 @@ export default {
       }, 300)
     }
   },
+  beforeDestroy() {
+    clearInterval(this.intervalId)
+  },
   methods: {
     openHot(hotspot) {
       // 停止自动导览