加油,奥里给!
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user