feat: auto select current branch
This commit is contained in:
parent
dcefa3de02
commit
2dac800fad
5 changed files with 81 additions and 66 deletions
|
|
@ -24,23 +24,6 @@ const props = defineProps<{
|
|||
service?: boolean;
|
||||
optionsBranch?: { id: string; name: string }[];
|
||||
}>();
|
||||
|
||||
onMounted( async() => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
if(!!props.optionsBranch ){
|
||||
registeredBranchId.value = props.optionsBranch[0].id ;
|
||||
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue