WebApp【公共组件库】@前端(For Git Submodule)
chensiAb
2024-11-07 4e60564fbf6b6c26ac5cd2977daa70e48d72c1b6
fix:CinputPhoneCode-每次点击获取验证码清除定时器
1 files modified
4 ■■■ changed files
forms/input/CInputPhoneCode.vue 4 ●●● patch | view | raw | blame | history
forms/input/CInputPhoneCode.vue
@@ -60,6 +60,7 @@
        return {
            cd: 60,
            holding: false,
            timer: null,
        };
    },
    computed: {
@@ -79,7 +80,8 @@
            const startCD = () => {
                this.holding = true;
                this.cd = 60;
                setInterval(() => {
                clearInterval(this.timer);
                this.timer = setInterval(() => {
                    this.cd -= 1;
                    if (this.cd === 0) {
                        this.holding = false;