1
2026-05-19 0ef335dce6b9f40f094fa46e08b0888a594fd2e1
src/page/trading/buy.vue
@@ -184,8 +184,8 @@
        </div>
      </div> -->
      <div class="btn_buy" @click="gdOrSetBuy()">
        <!-- <div :class="tabsCurrentIndex == 0 ? 'maichu' : ''">#c4d600 -->
        <div class="maichu" style="background-color:#c4d600">
        <!-- <div :class="tabsCurrentIndex == 0 ? 'maichu' : ''">#00f0ff -->
        <div class="maichu" style="background-color:#00f0ff">
          <span>{{ tabsCurrentIndex == 0 ? $t("hj84") : $t("gm") }}</span>
        </div>
      </div>
@@ -333,6 +333,16 @@
      }
    }
  },
  // 路由守卫 - 离开页面时清除 alert
  beforeRouteLeave(to, from, next) {
    // 如果 alert 正在显示,清除它
    if (this.$store.state.elAlertShow) {
      this.$store.commit("elAlertShow", {
        elAlertShow: false
      });
    }
    next();
  },
  methods: {
    async queryStockConfig() {
      let data = await api.queryStockConfig();