refactor: ดักค่า code ไม่ให้ส่งตอนสร้าง
This commit is contained in:
parent
417f3ef422
commit
311ec7d2d0
1 changed files with 3 additions and 1 deletions
|
|
@ -307,13 +307,15 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
transactionId?: string;
|
transactionId?: string;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
const { code, ...playload } = data;
|
||||||
|
|
||||||
const res = await api.post<
|
const res = await api.post<
|
||||||
Customer & {
|
Customer & {
|
||||||
branch: CustomerBranch[];
|
branch: CustomerBranch[];
|
||||||
imageUrl: string;
|
imageUrl: string;
|
||||||
imageUploadUrl: string;
|
imageUploadUrl: string;
|
||||||
}
|
}
|
||||||
>('/customer-branch', data, {
|
>('/customer-branch', 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