refactor: add submit customerBranch
This commit is contained in:
parent
20469b3823
commit
fd47115e3e
1 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue