Commit 87dd8f66 by 姜雷

修改验证码倒数问题

parent 512434e0
<script>
import { getVcode } from '@/api/user/update';
import { clearTimeout } from 'timers';
export default {
props: {
......@@ -26,6 +27,8 @@ export default {
const count = this.count;
if (count == 1) {
this.counting = false;
this.count = 60;
this.timer = null;
} else {
const timer = setTimeout(() => {
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