From f8ec82626c88fbe7827a4834b9710ea6b2cb998f Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 5 Jul 2024 09:34:17 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=AA=E0=B8=B2=E0=B8=82=E0=B8=B2=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B9=84=E0=B8=94=E0=B9=89?= 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 f02c67e5..74522134 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -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,