diff --git a/src/component/LoginPage/verificationCodeInput.vue b/src/component/LoginPage/verificationCodeInput.vue index 4d8b92b7..f28ecc77 100644 --- a/src/component/LoginPage/verificationCodeInput.vue +++ b/src/component/LoginPage/verificationCodeInput.vue @@ -42,8 +42,8 @@ export default defineComponent({ cIndex() { this.resetCaret(); }, - lastCode(val) { - if (val) { + lastCode(newVal,oldVal) { + if (newVal && newVal != oldVal) { this.$refs.input[this.ctSize - 1].blur(); this.sendCaptcha(); }