From 732c30b33f782c2d2ebb62eacda2fb7a453a7ecd Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Sat, 31 Jan 2026 11:01:45 +0800
Subject: [PATCH] 1

---
 src/page/kline/components/kLine.vue |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/page/kline/components/kLine.vue b/src/page/kline/components/kLine.vue
index e9587e6..e0a5a44 100644
--- a/src/page/kline/components/kLine.vue
+++ b/src/page/kline/components/kLine.vue
@@ -67,8 +67,8 @@
 </template>
 
 <script>
+let timerss = null; //定时器
 import * as echarts from "echarts";
-
 import _ from "lodash";
 import HQChart from "hqchart";
 import "hqchart/src/jscommon/umychart.resource/css/tools.css";
@@ -1139,7 +1139,6 @@
 
       VolChartHeight: 10,
       chartType: "kline",
-      timerss: null,
       isShow: false,
       xData: []
     };
@@ -1169,7 +1168,7 @@
 
     // this.CreateKLineChart();
     this.$nextTick(() => {
-      // this.timerss = setInterval(() => {
+      // timerss = setInterval(() => {
       // this.CreateMinuteChart();
       this.CreateKLineChart();
     });
@@ -1206,8 +1205,8 @@
     });
   },
   beforeDestroy() {
-    clearInterval(this.timerss); // 在组件销毁前清除定时器
-    this.timerss = null;
+    clearInterval(timerss); // 在组件销毁前清除定时器
+    timerss = null;
     this.clearTime();
   },
   methods: {
@@ -1237,7 +1236,7 @@
       // 遍历并清除所有定时器
       for (let i = 1; i <= lastIntervalId; i++) {
         clearInterval(i);
-        clearTimeout(i);
+        // clearTimeout(i);
       }
     },
     changeRightContent(type) {
@@ -1360,7 +1359,7 @@
       EastMoney.HQData.Log("[HQChartDemo::NetworkFilter] data", data);
 
       EastMoney.HQData.NetworkFilter(data, callback);
-      this.timerss = setInterval(() => {
+      timerss = setInterval(() => {
         EastMoney.HQData.NetworkFilter(data, callback);
       }, 3000);
     },

--
Gitblit v1.9.3