Commit 7ea955b2 authored by 郭志伟's avatar 郭志伟

fix: 支付中状态优化

parent 7c6d83e9
...@@ -79,11 +79,12 @@ axios.interceptors.response.use( ...@@ -79,11 +79,12 @@ axios.interceptors.response.use(
if (response.data.code === "0") return response.data.data; if (response.data.code === "0") return response.data.data;
Notify({ type: "danger", message: response.data.msg || "后端服务异常" }); Notify({ type: "danger", message: response.data.msg || "后端服务异常" });
store.dispatch("setIsPayWait", false);
return Promise.reject(response.data); return Promise.reject(response.data);
}, },
err => { err => {
afterRequest(); afterRequest();
store.dispatch("setIsPayWait", false);
// 判断是否取消请求 // 判断是否取消请求
if (err.message === "取消重复请求") { if (err.message === "取消重复请求") {
const res = { const res = {
......
...@@ -64,6 +64,8 @@ export default { ...@@ -64,6 +64,8 @@ export default {
payByWay(tradeType, payInfo).then(() => { payByWay(tradeType, payInfo).then(() => {
this.getPayResult(); this.getPayResult();
}); });
} else {
this.setIsPayWait(false);
} }
}, },
getPayResult() { getPayResult() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment