fix(03): br select when create

This commit is contained in:
puriphatt 2024-07-31 04:51:33 +00:00
parent 6a298cfae0
commit 3c60a902b4

View file

@ -46,6 +46,12 @@ defineEmits<{
(e: 'filterOwnerBranch', val: string, update: void): void;
}>();
const branchOptions = ref<Record<string, unknown>[]>([]);
let branchFilter: (
value: string,
update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
) => void;
watch(
() => optionsBranch.value,
() => {
@ -57,11 +63,9 @@ watch(
},
);
const branchOptions = ref<Record<string, unknown>[]>([]);
let branchFilter: (
value: string,
update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void,
) => void;
onMounted(() => {
branchFilter = selectFilterOptionRefMod(optionsBranch, branchOptions, 'name');
});
</script>
<template>