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