From dae398af7420dfb24cf66364f06e6a384db38ae8 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Thu, 18 Apr 2024 10:37:07 +0800
Subject: [PATCH] no message

---
 src/page/trading/buy.vue |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/page/trading/buy.vue b/src/page/trading/buy.vue
index be3bbaf..87bb0a8 100644
--- a/src/page/trading/buy.vue
+++ b/src/page/trading/buy.vue
@@ -465,7 +465,7 @@
           elAlertType: "success",
         });
         this.getUserInfo();
-        this.$router.push("/warehouse?index=1");
+        this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
       } else {
         this.$store.commit("elAlertShow", {
           elAlertShow: true,
@@ -543,13 +543,7 @@
         } else {
           buyType = 0;
         }
-        if (this.bayType == "US") {
-          this.$router.push("/warehouse?index=1&buyType=" + buyType);
-        } else if (this.bayType == "MAS") {
-          this.$router.push("/warehouse?index=0&buyType=" + buyType);
-        } else {
-          this.$router.push("/warehouse");
-        }
+        this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
       } else {
         if (data.msg.indexOf("不在交易时段内") > -1) {
           this.$store.commit("elAlertShow", {
@@ -576,7 +570,7 @@
           elAlertType: "success",
         });
         this.getUserInfo();
-        this.$router.push("/warehouse?index=0");
+        this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
       } else {
         this.$store.commit("elAlertShow", {
           elAlertShow: true,

--
Gitblit v1.9.3