From ab4c54429ca8116f5ecd542affdd0e8cbdd320f0 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Thu, 21 Aug 2025 14:25:01 +0800
Subject: [PATCH] 1
---
src/store/index.js | 8 ++++----
src/page/trading/buy.vue | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/page/trading/buy.vue b/src/page/trading/buy.vue
index 0bc0fb7..3ca4e80 100644
--- a/src/page/trading/buy.vue
+++ b/src/page/trading/buy.vue
@@ -574,7 +574,7 @@
});
this.getUserInfo();
// this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
- this.$router.go(-1);
+ this.$router.push("/markets-list");
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
@@ -654,7 +654,7 @@
buyType = 0;
}
// this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
- this.$router.go(-1);
+ this.$router.push("/markets-list");
} else {
if (data.msg.indexOf("不在交易时段内") > -1) {
this.$store.commit("elAlertShow", {
@@ -682,7 +682,7 @@
});
this.getUserInfo();
// this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
- this.$router.go(-1);
+ this.$router.push("/markets-list");
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
diff --git a/src/store/index.js b/src/store/index.js
index 178eb2b..460ec97 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,7 +1,7 @@
import { getUserInfodata } from "@/axios/api";
import Vue from "vue";
import Vuex from "vuex";
-import { Toast } from 'vant';
+import { Toast } from "vant";
import i18n from "@/locales/index.js";
// import getters from './getters'
// import actions from './actions'
@@ -32,7 +32,7 @@
indexDisplay: false,
kcStockDisplay: false,
stockDisplay: false
- },
+ }
};
export default new Vuex.Store({
@@ -50,8 +50,8 @@
}
},
// 触发客服提示
- CustomerService(){
- Toast(i18n.t('kf1'));
+ CustomerService() {
+ Toast(i18n.t("kf1"));
}
},
mutations: {
--
Gitblit v1.9.3