fix: validate error on open dialog

This commit is contained in:
Methapon Metanipat 2024-09-05 15:36:48 +07:00
parent 6ea964852b
commit d6e8d754ab

View file

@ -1702,8 +1702,8 @@ const emptyCreateDialog = ref(false);
:model-value="customerFormState.dialogModal"
:on-open="
async () => {
await fetchListOfOptionBranch();
customerFormStore.resetForm(customerFormState.dialogType === 'create');
await fetchListOfOptionBranch();
}
"
:on-close="() => (customerFormState.dialogModal = false)"