From 107a95e57aa1cf3e42a704db891c8033f7c0ecd4 Mon Sep 17 00:00:00 2001 From: Rogee Date: Fri, 26 Dec 2025 22:43:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E4=BC=98=E5=8C=96=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=A7=86=E5=9B=BE=EF=BC=8C=E8=B0=83=E6=95=B4=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E5=92=8C=E9=AA=8C=E8=AF=81=E7=A0=81=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/portal/src/views/auth/LoginView.vue | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/frontend/portal/src/views/auth/LoginView.vue b/frontend/portal/src/views/auth/LoginView.vue index 7cb9845..a436601 100644 --- a/frontend/portal/src/views/auth/LoginView.vue +++ b/frontend/portal/src/views/auth/LoginView.vue @@ -28,7 +28,7 @@ @@ -74,12 +74,14 @@

输入验证码

验证码已发送至 +86 {{ phone }}

-
+
@@ -105,6 +107,7 @@ import { useRouter } from 'vue-router'; const router = useRouter(); const step = ref(1); const phone = ref(''); +const otpCode = ref(''); const agreed = ref(false); const getOTP = () => { @@ -117,8 +120,10 @@ const getOTP = () => { const login = () => { // Simulate Login - setTimeout(() => { - router.push('/'); - }, 800); + if (otpCode.value.length >= 4) { + setTimeout(() => { + router.push('/'); + }, 800); + } };