重新发送验证码定时器复位
This commit is contained in:
@@ -422,6 +422,8 @@ export default defineComponent({
|
||||
},
|
||||
//创建定时器
|
||||
createTimer() {
|
||||
clearInterval(this.timer);
|
||||
this.time = 60;
|
||||
this.timer = setInterval(() => {
|
||||
this.time--;
|
||||
if (!this.time) {
|
||||
|
||||
@@ -563,6 +563,8 @@ export default defineComponent({
|
||||
|
||||
//创建定时器
|
||||
createTimer() {
|
||||
clearInterval(this.timer);
|
||||
this.time = 60;
|
||||
this.timer = setInterval(() => {
|
||||
this.time--;
|
||||
if (this.time <= 0) this.clearTimer(0);
|
||||
|
||||
@@ -581,6 +581,8 @@ export default defineComponent({
|
||||
|
||||
//创建定时器
|
||||
createTimer() {
|
||||
clearInterval(this.timer);
|
||||
this.time = 60;
|
||||
this.timer = setInterval(() => {
|
||||
this.time--;
|
||||
if (this.time <= 0) this.clearTimer(0);
|
||||
|
||||
@@ -591,6 +591,8 @@ export default defineComponent({
|
||||
|
||||
//创建定时器
|
||||
createTimer() {
|
||||
clearInterval(this.timer);
|
||||
this.time = 60;
|
||||
this.timer = setInterval(() => {
|
||||
this.time--;
|
||||
if (this.time <= 0) this.clearTimer(0);
|
||||
|
||||
@@ -742,6 +742,8 @@ export default defineComponent({
|
||||
|
||||
//创建定时器
|
||||
createTimer() {
|
||||
clearInterval(this.timer);
|
||||
this.time = 60;
|
||||
this.timer = setInterval(() => {
|
||||
this.time--;
|
||||
if (!this.time) {
|
||||
|
||||
Reference in New Issue
Block a user