fix: แก้ สาขาที่ลงทะเบียนไม่มา

This commit is contained in:
Net 2024-07-10 11:49:27 +07:00
parent 48527a2f09
commit 56f880c4e3
2 changed files with 15 additions and 4 deletions

View file

@ -24,10 +24,19 @@ const props = defineProps<{
optionsBranch?: { id: string; name: string }[];
}>();
onMounted(async () => {
if(!!props.optionsBranch) {
registeredBranchId.value = props.optionsBranch[0].id ;
}
onMounted( async() => {
setTimeout(() => {
if(!!props.optionsBranch ){
registeredBranchId.value = props.optionsBranch[0].id ;
}
}, 100);
});