chore: format

This commit is contained in:
Methapon2001 2024-08-14 09:44:27 +07:00
parent 74f7630b2d
commit d39f9cd54d

View file

@ -359,18 +359,17 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
}
if (!currentFormData.value.id) {
const res = await customerStore.createBranch({
const res = await customerStore.createBranch({
...currentFormData.value,
customerId: state.value.currentCustomerId,
});
if(res) return res
if (res) return res;
} else {
const res = await customerStore.editBranchById(currentFormData.value.id, {
const res = await customerStore.editBranchById(currentFormData.value.id, {
...currentFormData.value,
id: undefined,
});
if(res) return res
if (res) return res;
}
}