diff --git a/src/components/auth/AuthForm.vue b/src/components/auth/AuthForm.vue index 898f1ab..db64d04 100644 --- a/src/components/auth/AuthForm.vue +++ b/src/components/auth/AuthForm.vue @@ -63,6 +63,14 @@ function validateLoginForm() { return false } + if (!agreed.value) { + uni.showToast({ + title: '请先同意用户协议', + icon: 'none', + }) + return false + } + return true }