From 6502e3f19fd1dd64f150b0eda4e2ccff485b3c28 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 4 Nov 2024 16:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/LoginPage/verificationCodeInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }