李凌
2025-09-10 2732ac88d39ba734771ddf014ef5a5131c4196dd
src/views/cryptos/Trade/index.vue
@@ -140,9 +140,7 @@
      </div> -->
      <van-action-sheet class="action-sheet" v-model:show="isSelectShow" @select="onSelect" :actions="actions"
        :cancel-text="$t('取消')" close-on-click-action @cancel="onCancel" />
    </div>
  </div>
</template>
@@ -282,6 +280,8 @@
    handleImage,
    ...mapActions('home', [SET_COIN_LIST]),
    onUpdate(symbol) { // 更新
      console.log("symbol",symbol);
      this.symbol = symbol
      this.closeSocket()
      this.init(symbol)
@@ -391,7 +391,6 @@
            this.initClose = res
          })
        }
        if (this.userInfo.token) {
          this.getWallet()
          this.timer3 = setInterval(() => {
@@ -399,6 +398,9 @@
          }, 2000)
        }
      }
      else{
        showFailToast(this.$t('请先登录'))
      }
    },
    init(symbol) { // 初始化页面
      this.symbol = symbol