From bc3a812e4134c46f2c7f118de0cf7cbee7ef58c2 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sat, 30 Aug 2025 16:50:28 +0800
Subject: [PATCH] 1

---
 src/views/home/components/HomeLtr.vue |   36 +++++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/src/views/home/components/HomeLtr.vue b/src/views/home/components/HomeLtr.vue
index 7e640f8..4b56ffe 100644
--- a/src/views/home/components/HomeLtr.vue
+++ b/src/views/home/components/HomeLtr.vue
@@ -954,7 +954,7 @@
     ],
     SplashTitle: "loading...",
     Symbol: "600015.sh",
-    IsAutoUpdate: true, // 是自动更新数据
+    IsAutoUpdate: false, // 是自动更新数据
     AutoUpdateFrequency: 15000,
     IsApiPeriod: true,
     IsShowRightMenu: false, // 是否显示右键菜单
@@ -1069,14 +1069,14 @@
       Name: i18n.t("hj89"),
       ID: 2,
     },
-    {
-      Name: i18n.t("hj90"),
-      ID: 4,
-    },
-    {
-      Name: i18n.t("hj91"),
-      ID: 5,
-    },
+    // {
+    //   Name: i18n.t("hj90"),
+    //   ID: 4,
+    // },
+    // {
+    //   Name: i18n.t("hj91"),
+    //   ID: 5,
+    // },
     {
       Name: i18n.t("hj92"),
       ID: 7,
@@ -1149,8 +1149,19 @@
     if (this.timerss) {
       clearInterval(this.timerss);
     }
+    this.clearTime();
   },
   methods: {
+    // 清除所有定时器
+    clearTime() {
+      // 创建一个额外的定时器以获取当前最大定时器 ID
+      let lastIntervalId = setInterval(() => {}, 1000);
+      // 遍历并清除所有定时器
+      for (let i = 1; i <= lastIntervalId; i++) {
+        clearInterval(i);
+        clearTimeout(i);
+      }
+    },
     init() {
       this.OnSize();
       this.SetChartStyle();
@@ -1214,6 +1225,7 @@
       HQChart.Chart.JSChart.SetStyle(blackStyle);
     },
     handleClick(tab) {
+      this.clearTime();
       this.KLineChart.ChangePeriod(tab.$attrs.Id);
     },
 
@@ -1248,10 +1260,8 @@
       data,
       callback // 第3方数据替换接口
     ) {
-      if (this.timerss) {
-        clearInterval(this.timerss);
-        this.timerss = null;
-      }
+      EastMoney.HQData.Log("[HQChartDemo::NetworkFilter] data", data);
+
       this.timeChange(data, callback);
       this.timerss = setInterval(() => {
         this.timeChange(data, callback);

--
Gitblit v1.9.3