fix: add user

This commit is contained in:
teukkk 2025-06-25 17:47:32 +08:00
parent 86e87e554e
commit 4a38b2563b

View File

@ -257,10 +257,11 @@ const open = (data: any) => {
const memberFormContentRef = ref<InstanceType<typeof MemberFormContent>>()
const submit = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate((valid, fields) => {
if (valid) {
memberFormContentRef.value?.validate().then(async (valid: any) => {
await formEl.validate(async(valid, fields) => {
if (valid) {
if (memberFormContentRef.value) {
await memberFormContentRef.value?.validate()
}
const params = {
...userForm.value,
role_setting: list.value
@ -281,8 +282,6 @@ const submit = async (formEl: FormInstance | undefined) => {
}
})
}
})
}
defineExpose({open})
</script>