From 311ec7d2d07c404dc6ae94e8b76fa20f4d5c91f1 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:29:11 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B8=94=E0=B8=B1=E0=B8=81?= =?UTF-8?q?=E0=B8=84=E0=B9=88=E0=B8=B2=20=20code=20=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=AA=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=95=E0=B8=AD=E0=B8=99=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/customer/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 60ba388a..f02c67e5 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -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,