加油,奥里给!

This commit is contained in:
lzp
2026-03-31 15:11:50 +08:00
parent 9aa9018b1b
commit f931ce4927
5 changed files with 27 additions and 11 deletions

View File

@@ -67,7 +67,7 @@
import { Login } from '@/api/user'
import { computed, reactive, ref } from 'vue'
import { useRouter } from 'vue-router'
import { validateEmail, validatePass, validatePrivacy } from './tools'
import { validateEmail, validatePassLength, validatePrivacy } from './tools'
import OtherLogin from './other-login.vue'
import VisibleCode from './visible-code.vue'
import { useUserInfoStore } from '@/stores'
@@ -77,14 +77,7 @@
const router = useRouter()
const ruleForm = reactive({
email: [{ validator: validateEmail, trigger: 'change' }],
password: [
{
min: 6,
max: 12,
message: t('Login.passwordLengthError', { min: 6, max: 12 }),
trigger: 'change'
}
],
password: [{ validator: validatePassLength, trigger: 'change' }],
privacy: [{ validator: validatePrivacy, trigger: 'change' }]
})
const isVisible = ref(false)