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); + } };