chore: format
This commit is contained in:
parent
74f7630b2d
commit
d39f9cd54d
1 changed files with 4 additions and 5 deletions
|
|
@ -359,18 +359,17 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!currentFormData.value.id) {
|
if (!currentFormData.value.id) {
|
||||||
const res = await customerStore.createBranch({
|
const res = await customerStore.createBranch({
|
||||||
...currentFormData.value,
|
...currentFormData.value,
|
||||||
customerId: state.value.currentCustomerId,
|
customerId: state.value.currentCustomerId,
|
||||||
});
|
});
|
||||||
if(res) return res
|
if (res) return res;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
const res = await customerStore.editBranchById(currentFormData.value.id, {
|
const res = await customerStore.editBranchById(currentFormData.value.id, {
|
||||||
...currentFormData.value,
|
...currentFormData.value,
|
||||||
id: undefined,
|
id: undefined,
|
||||||
});
|
});
|
||||||
if(res) return res
|
if (res) return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue