1
jhzh
2025-08-18 401c2caeedb8952ca5f792381fff9fc9b83f663d
src/views/trade/index.vue
@@ -13,7 +13,6 @@
    <ContractHeader :symbol="symbol" :range="range" :selectIndex="selectIndex" :symbolName="symbolName"
      :balance="userInfo.balance" @tab="onTopTab" @update-coin="onUpdate">
    </ContractHeader>
    <!-- <Head :symbolObj="symbolObj"></Head> -->
    <div :key="symbol" class="pb-108 no_touch">
@@ -305,10 +304,10 @@
    }
  },
  async created() {
    if (this.$route.query.type) {
      this.type = this.$route.query.type
    }
   this.keyIndex += 1
    await this.SET_COIN_LIST(this.type)
    _getBalance().then(data => { // 获取用户余额
      this.$store.commit('user/SET_USERINFO', { balance: data.money })
@@ -317,8 +316,10 @@
    })
  },
  methods: {
    ...mapActions('home', [SET_COIN_LIST]),
    onUpdate(symbol) { // 更新
      this.keyIndex += 1
      this.currentType = 'long'
      this.symbol = symbol
      this.closeSocket()