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;
|
transactionId?: string;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
const { code, branchNo, ...playload } = data;
|
||||||
|
|
||||||
const res = await api.put<
|
const res = await api.put<
|
||||||
Customer & {
|
Customer & {
|
||||||
branch: CustomerBranch[];
|
branch: CustomerBranch[];
|
||||||
}
|
}
|
||||||
>(`/customer-branch/${id}`, data, {
|
>(`/customer-branch/${id}`, playload, {
|
||||||
headers: {
|
headers: {
|
||||||
'X-Session-Id': flow?.sessionId,
|
'X-Session-Id': flow?.sessionId,
|
||||||
'X-Rtid': flow?.refTransactionId || flowStore.rtid,
|
'X-Rtid': flow?.refTransactionId || flowStore.rtid,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue