From 5122b0fd2a3e48938edb7e3f336c8df94f2ad9dc Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Wed, 7 May 2025 14:58:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=80=BC=E7=9A=84=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PhoneCode.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PhoneCode.vue b/src/components/PhoneCode.vue index fba4e37..99fa4d0 100644 --- a/src/components/PhoneCode.vue +++ b/src/components/PhoneCode.vue @@ -33,11 +33,11 @@ import GuipInput from '@/components/GuipInput.vue'; }, methods: { async sendCode() { - if (!/^1\d{10}$/.test(this.$refs.phoneNumber.value)) { + if (!/^1\d{10}$/.test(this.$refs.phoneNumber.inputValue)) { this.$message.warning('请输入有效的手机号码'); return; } - this.phoneValue = this.$refs.phoneNumber.value; + this.phoneValue = this.$refs.phoneNumber.inputValue; this.startCountdown(); // 根据实际接口请求 // try {