fix: แก้ไขสาขาไม่ได้
This commit is contained in:
parent
47c6a7dc2d
commit
f8ec82626c
1 changed files with 3 additions and 1 deletions
|
|
@ -336,11 +336,13 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { code, branchNo, ...playload } = data;
|
||||
|
||||
const res = await api.put<
|
||||
Customer & {
|
||||
branch: CustomerBranch[];
|
||||
}
|
||||
>(`/customer-branch/${id}`, data, {
|
||||
>(`/customer-branch/${id}`, playload, {
|
||||
headers: {
|
||||
'X-Session-Id': flow?.sessionId,
|
||||
'X-Rtid': flow?.refTransactionId || flowStore.rtid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue