src/page/kline/index.vue
@@ -489,6 +489,13 @@ }, created() { // 进入页面的时候清除所以得计时器,防止页面切换的时候出现多个定时器 let end = setTimeout(function() {}, 0); for (let i = 0; i <= end; i++) { clearTimeout(i); clearInterval(i); } const { query } = this.$route; this.kLineDetails = query; if (query.if_us === "1") { @@ -497,7 +504,7 @@ this.getSingDetails(); this.timer = setInterval(() => { this.getSingDetails(); }, 5000); }, 2000); } this.getOpation(); this.getUserInfo();