From 11f4f3536b4c1c3b089db9ee4f8e81cd7a35a055 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 14 Jul 2025 17:52:23 +0800
Subject: [PATCH] 内存泄漏风险

---
 src/views/cryptos/TrendDetails/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/cryptos/TrendDetails/index.vue b/src/views/cryptos/TrendDetails/index.vue
index 25845ca..6a68978 100644
--- a/src/views/cryptos/TrendDetails/index.vue
+++ b/src/views/cryptos/TrendDetails/index.vue
@@ -16,11 +16,11 @@
         <div class="data-index">
           <div class="flex flex-1 px-32 mt-40">
             <div class="flex flex-col font-22">
-              <p class="font-70 font-600" :class="quote.change_ratio > 0 ? 'text-green' : 'text-red'">
+              <p class="font-70 font-600" :class="quote.change_ratio_str > 0 ? 'text-green' : 'text-red'">
                 {{ quote.close || '--' }}</p>
               <p class="font-22 mt-10">≈ {{ currency.currency_symbol }}{{ quote.close ? (quote.close *
                 currency.rate).toFixed(2) : '--' }}
-                <span :class="quote.change_ratio > 0 ? 'text-green' : 'text-red'">{{ quote.change_ratio
+                <span :class="quote.change_ratio_str > 0 ? 'text-green' : 'text-red'">{{ quote.changeRatioStr
                   ||
                   '--' }}%</span>
               </p>
@@ -443,7 +443,7 @@
         })
         return
       } else {
-        this.$router.push(`/cryptos/perpetualContract/${this.symbol}`)
+        this.$router.push(`/cryptos/perpetualContract/${this.symbol}?type=cryptos&selectIndex=2`)
       }
     },
     onClose() {
@@ -525,6 +525,7 @@
     this.sockets.quote = null
     this.sockets.deals = null
     this.sockets.askBid = null
+    clearTimeout(this.timeout)
   },
   beforeRouteEnter(to, from, next) {
     const { params: { symbol } } = to
@@ -551,7 +552,7 @@
 }
 
 :deep(.van-tabs__nav) {
-  background-color: $night !important;
+  // background-color: $night !important;
 }
 
 @keyframes animate1 {

--
Gitblit v1.9.3