From f97b78187d462f628ab5231e6a445481dfe135d9 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 6 Aug 2024 09:37:32 +0700 Subject: [PATCH] fix: reset --- src/pages/03_customer-management/form.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index 036f34c5..a8fe3e00 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -71,6 +71,8 @@ export const useCustomerForm = defineStore('form-customer', () => { currentFormData.value = structuredClone(defaultFormData); currentFormData.value.registeredBranchId = branchStore.currentMyBranch?.id || ''; + resetFormData = structuredClone(defaultFormData); + resetFormData.registeredBranchId = branchStore.currentMyBranch?.id || ''; return; }