Commit 87dd8f66 by 姜雷

修改验证码倒数问题

parent 512434e0
<script> <script>
import { getVcode } from '@/api/user/update'; import { getVcode } from '@/api/user/update';
import { clearTimeout } from 'timers';
export default { export default {
props: { props: {
...@@ -26,6 +27,8 @@ export default { ...@@ -26,6 +27,8 @@ export default {
const count = this.count; const count = this.count;
if (count == 1) { if (count == 1) {
this.counting = false; this.counting = false;
this.count = 60;
this.timer = null;
} else { } else {
const timer = setTimeout(() => { const timer = setTimeout(() => {
this.countDown(); this.countDown();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment