From 58b0f1e9bd03a472321acf1dfc4e89fc4ce9df7a Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Mon, 29 Sep 2025 01:14:10 +0800
Subject: [PATCH] 9.28更换api
---
src/page/kline/kIndex.vue | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/page/kline/kIndex.vue b/src/page/kline/kIndex.vue
index ff1c6cd..960fcfe 100644
--- a/src/page/kline/kIndex.vue
+++ b/src/page/kline/kIndex.vue
@@ -5,7 +5,7 @@
<div class="ti_cont">
<div class="top_back">
<div class="left_back" @click="handleBackaa()">
- <img src="../../assets/img/zuojiantou.png" alt />
+ <img src="../../assets/img/backs.png" alt />
</div>
<div class="right_title">
<div class="t_t" style="white-space: nowrap">
@@ -256,11 +256,11 @@
</div>
</div>
</div>
- <div class="recommendation">
+ <!-- <div class="recommendation">
<div class="division"></div>
<div class="recommendation_title">{{ $t("相关股票") }}</div>
<stock-list :propOption="propOption"></stock-list>
- </div>
+ </div> -->
</div>
</template>
@@ -306,6 +306,7 @@
if (query.if_us === "1") {
this.getSingDetailUs();
} else {
+ this.getSingDetails();
this.timer = setInterval(() => {
this.getSingDetails();
}, 2000);
@@ -313,9 +314,12 @@
this.getOpation();
// this.$Lazyload();
this.getUserInfo();
- this.getNohknews();
+ // this.getNohknews();
},
beforeDestroy() {
+ this.clearInterval(this.timer); // 在组件销毁前清除定时器
+ },
+ destroyed() {
this.clearInterval(this.timer); // 在组件销毁前清除定时器
},
// beforeDestroy() {
@@ -696,7 +700,7 @@
width: 100%;
// height: 3.2rem;
padding: 0 0.3rem;
- background: #fff;
+ // background: #fff;
.top_back {
width: 50%;
--
Gitblit v1.9.3