mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
fix: phoneIntval
修复注册页面验证码倒计时bug
This commit is contained in:
parent
450cf5d632
commit
99784b87b4
@ -160,8 +160,8 @@
|
||||
},
|
||||
beforeDestroy() {
|
||||
document.body.style.overflow = 'auto'
|
||||
this.getPhoneIntval = null
|
||||
clearInterval(this.getPhoneIntval)
|
||||
this.getPhoneIntval = null
|
||||
},
|
||||
methods: {
|
||||
getPhoneCode() {
|
||||
@ -177,8 +177,8 @@
|
||||
n--
|
||||
this.phoneCode = '重新获取(' + n + 's)'
|
||||
} else {
|
||||
this.getPhoneIntval = null
|
||||
clearInterval(this.getPhoneIntval)
|
||||
this.getPhoneIntval = null
|
||||
this.phoneCode = '获取验证码'
|
||||
this.isGetphone = false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user