登录密码校验
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, reactive, ref } from 'vue'
|
import { computed, reactive, ref } from 'vue'
|
||||||
import { validateEmail, validatePassLength, validatePrivacy } from './tools'
|
import { validateEmail, validatePass, validatePrivacy } from './tools'
|
||||||
import OtherLogin from './other-login.vue'
|
import OtherLogin from './other-login.vue'
|
||||||
const emit = defineEmits(['retrieve-password', 'login'])
|
const emit = defineEmits(['retrieve-password', 'login'])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
})
|
})
|
||||||
const ruleForm = reactive({
|
const ruleForm = reactive({
|
||||||
email: [{ validator: validateEmail, trigger: 'change' }],
|
email: [{ validator: validateEmail, trigger: 'change' }],
|
||||||
password: [{ validator: validatePassLength, trigger: 'change' }],
|
password: [{ validator: validatePass, trigger: 'change' }],
|
||||||
privacy: [{ validator: validatePrivacy, trigger: 'change' }]
|
privacy: [{ validator: validatePrivacy, trigger: 'change' }]
|
||||||
})
|
})
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
|
|||||||
Reference in New Issue
Block a user