优化自定义控件表单验证

This commit is contained in:
Gary Fu
2024-01-06 19:28:58 +08:00
parent 62f7ad4b9c
commit 38f6ea96d6
5 changed files with 39 additions and 14 deletions

View File

@@ -149,10 +149,7 @@ const formOptions = computed(() => {
}
}]
})
const userDto = ref({
userName: '',
userPassword: ''
})
const userDto = ref({})
const submitForm = (form) => {
console.info(form)
form.validate((valid) => {