feat: close on save

This commit is contained in:
Methapon2001 2024-08-05 15:57:53 +07:00
parent 6e43b504be
commit 26300a189f

View file

@ -161,7 +161,11 @@ export const useCustomerForm = defineStore('form-customer', () => {
}
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() {