优化手机号码登录时图形验证码校验问题
This commit is contained in:
parent
8290727283
commit
397b31a548
|
|
@ -413,6 +413,9 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$modal.msgSuccess('发送成功')
|
this.$modal.msgSuccess('发送成功')
|
||||||
const TIME_COUNT = 60
|
const TIME_COUNT = 60
|
||||||
|
if (!this.timer) {
|
||||||
|
this.count = TIME_COUNT
|
||||||
|
this.show = 2
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
if (this.count > 0 && this.count <= TIME_COUNT) {
|
if (this.count > 0 && this.count <= TIME_COUNT) {
|
||||||
this.count--
|
this.count--
|
||||||
|
|
@ -423,6 +426,7 @@ export default {
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.dialogCodeVisible = false
|
this.dialogCodeVisible = false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue