feat: add resetValidation method to MemberFormContent and improve formatting in UserDrawer
parent
cc0eef326b
commit
d466d0f512
|
|
@ -109,5 +109,10 @@ const validate = () => {
|
|||
return Promise.resolve()
|
||||
}
|
||||
|
||||
defineExpose({ validate })
|
||||
const resetValidation = () => {
|
||||
if (formRef.value) {
|
||||
formRef.value.clearValidate()
|
||||
}
|
||||
}
|
||||
defineExpose({ validate, resetValidation })
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -300,6 +300,9 @@ const open = (data: any) => {
|
|||
userManageApi.getSystemDefaultPassword().then((res: any) => {
|
||||
userForm.value.password = res.data.password
|
||||
})
|
||||
if (memberFormContentRef.value) {
|
||||
memberFormContentRef.value.resetValidation()
|
||||
}
|
||||
}
|
||||
|
||||
visible.value = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue