浏览代码

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

(cherry picked from commit 1fecf56dafa8a3f7c0e8e502ff565a91cf9f3765)
任一存 2 年之前
父节点
当前提交
4fb014ce3e
共有 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) {
       // 停止自动导览