修复提现弹窗关闭定时器未重置问题
This commit is contained in:
parent
d57365fa68
commit
35eaae83dc
|
|
@ -939,9 +939,10 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reset() {
|
reset() {
|
||||||
|
console.log("reset");
|
||||||
this.msg = "";
|
this.msg = "";
|
||||||
this.timer = null;
|
this.timer = null;
|
||||||
cleartimeout(this.timer);
|
clearInterval(this.timer);
|
||||||
this.msgTime = 60;
|
this.msgTime = 60;
|
||||||
},
|
},
|
||||||
sendMsg() {
|
sendMsg() {
|
||||||
|
|
@ -971,7 +972,7 @@ export default {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "发送失败",
|
message: res.data.msg|| "发送失败",
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue