From 4702be083e8b554eb3037f0ecc0b4ba1d04c2406 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Sun, 18 May 2025 17:16:48 +0800
Subject: [PATCH] 解决交易和合约切换值不同步的问题
---
src/page/perpetualContract/index.vue | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/page/perpetualContract/index.vue b/src/page/perpetualContract/index.vue
index 20ac0c6..803224a 100644
--- a/src/page/perpetualContract/index.vue
+++ b/src/page/perpetualContract/index.vue
@@ -534,7 +534,8 @@
this.init(symbol);
},
activated() {
- let symbol = this.$route.params.symbol;
+ // let symbol = this.$route.params.symbol;
+ let symbol = getStorage("symbol");
let catchSymbol = getStorage("symbol");
if (!symbol && catchSymbol) {
symbol = catchSymbol;
@@ -546,6 +547,10 @@
}
this.symbol = symbol;
this.init(symbol);
+
+ this.currentType = this.$route.query.currentType
+ ? this.$route.query.currentType
+ : "long";
},
// beforeRouteEnter(to, from, next) {
// let { params: { symbol }, query: { selectIndex } } = to
@@ -581,11 +586,9 @@
this.closeSocket();
this.clearTimer();
},
- activated() {
- this.currentType = this.$route.query.currentType
- ? this.$route.query.currentType
- : "long";
- },
+ // activated() {
+
+ // },
beforeDestroy() {
this.closeSocket();
// this.clearTimeout(true)
--
Gitblit v1.9.3