refactor: add submit customerBranch

This commit is contained in:
Net 2024-08-13 16:39:44 +07:00
parent 20469b3823
commit fd47115e3e

View file

@ -495,8 +495,15 @@ watch([inputSearch, currentStatus], async () => {
<DialogFormContainer
:model-value="customerBranchFormState.dialogModal"
:on-close="() => (customerBranchFormState.dialogModal = false)"
@submit="() => {}"
@submit="
async () => {
const res = await customerBranchFormStore.submitForm();
if (res) {
customerBranchFormStore.initForm('info', res?.id);
}
}
"
>
<template #header>
<DialogHeader