From 3c60a902b4d3137267b9136e0079ec4197688770 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 31 Jul 2024 04:51:33 +0000 Subject: [PATCH] fix(03): br select when create --- .../03_customer-management/BasicInformation.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/03_customer-management/BasicInformation.vue b/src/components/03_customer-management/BasicInformation.vue index 37fb8d9f..3986f1c3 100644 --- a/src/components/03_customer-management/BasicInformation.vue +++ b/src/components/03_customer-management/BasicInformation.vue @@ -46,6 +46,12 @@ defineEmits<{ (e: 'filterOwnerBranch', val: string, update: void): void; }>(); +const branchOptions = ref[]>([]); +let branchFilter: ( + value: string, + update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void, +) => void; + watch( () => optionsBranch.value, () => { @@ -57,11 +63,9 @@ watch( }, ); -const branchOptions = ref[]>([]); -let branchFilter: ( - value: string, - update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void, -) => void; +onMounted(() => { + branchFilter = selectFilterOptionRefMod(optionsBranch, branchOptions, 'name'); +});