From eeb8f18b48989bac5eb5847a51359496956c5339 Mon Sep 17 00:00:00 2001
From: 李 <344137771@qq.com>
Date: Thu, 30 Apr 2026 18:32:45 +0800
Subject: [PATCH] 1
---
src/page/kline/components/kLine.vue | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/page/kline/components/kLine.vue b/src/page/kline/components/kLine.vue
index e9587e6..79ae628 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);
},
@@ -1456,7 +1455,7 @@
&:hover,
&.active {
- color: #c4d600;
+ color: #00f0ff;
}
}
}
@@ -1501,7 +1500,7 @@
}
.active {
- color: #c4d600;
+ color: #00f0ff;
font-weight: 800;
background: rgb(245, 245, 245);
}
@@ -1581,7 +1580,7 @@
}
.active {
- color: #c4d600;
+ color: #00f0ff;
font-weight: 800;
background: rgb(245, 245, 245);
}
--
Gitblit v1.9.3