lxf
2025-05-18 4702be083e8b554eb3037f0ecc0b4ba1d04c2406
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)