|
@ -581,6 +581,7 @@ const submitForm = async () => { |
|
|
const data = unref(formRef)?.formModel |
|
|
const data = unref(formRef)?.formModel |
|
|
emit('submitForm', formType.value, data) |
|
|
emit('submitForm', formType.value, data) |
|
|
} finally { |
|
|
} finally { |
|
|
|
|
|
formLoading.value = false |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// 编辑 |
|
|
// 编辑 |
|
@ -588,6 +589,7 @@ const submitForm = async () => { |
|
|
const data = unref(formRef)?.formModel |
|
|
const data = unref(formRef)?.formModel |
|
|
emit('submitForm', formType.value, data) |
|
|
emit('submitForm', formType.value, data) |
|
|
} finally { |
|
|
} finally { |
|
|
|
|
|
formLoading.value = false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|