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