1
admin
2026-01-28 03ec19e1313fa30b8039f3ce507efb11242dd3ec
src/page/trading/buy.vue
@@ -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();