feat: close on save
This commit is contained in:
parent
6e43b504be
commit
26300a189f
1 changed files with 5 additions and 1 deletions
|
|
@ -161,7 +161,11 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function submitForm() {
|
async function submitForm() {
|
||||||
if (state.value.saveMode === 'customer') await submitFormCustomer();
|
if (state.value.saveMode === 'customer') {
|
||||||
|
await submitFormCustomer().then(() => {
|
||||||
|
state.value.dialogModal = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function submitFormCustomer() {
|
async function submitFormCustomer() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue