注册密码格式校验
This commit is contained in:
@@ -71,11 +71,20 @@
|
||||
import OtherLogin from './other-login.vue'
|
||||
import VisibleCode from './visible-code.vue'
|
||||
import { useUserInfoStore } from '@/stores'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
const { t } = useI18n()
|
||||
const userInfoStore = useUserInfoStore()
|
||||
const router = useRouter()
|
||||
const ruleForm = reactive({
|
||||
email: [{ validator: validateEmail, trigger: 'blur' }],
|
||||
password: [{ validator: validatePass, trigger: 'blur' }],
|
||||
email: [{ validator: validateEmail, trigger: 'change' }],
|
||||
password: [
|
||||
{
|
||||
min: 6,
|
||||
max: 12,
|
||||
message: t('Login.passwordLengthError', { min: 6, max: 12 }),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
privacy: [{ validator: validatePrivacy, trigger: 'change' }]
|
||||
})
|
||||
const isVisible = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user