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

fix: 支付中状态优化

parent 7c6d83e9
......@@ -79,11 +79,12 @@ axios.interceptors.response.use(
if (response.data.code === "0") return response.data.data;
Notify({ type: "danger", message: response.data.msg || "后端服务异常" });
store.dispatch("setIsPayWait", false);
return Promise.reject(response.data);
},
err => {
afterRequest();
store.dispatch("setIsPayWait", false);
// 判断是否取消请求
if (err.message === "取消重复请求") {
const res = {
......
......@@ -64,6 +64,8 @@ export default {
payByWay(tradeType, payInfo).then(() => {
this.getPayResult();
});
} else {
this.setIsPayWait(false);
}
},
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