perf: 优化 useFetchSelect 细节

This commit is contained in:
pany 2024-11-25 10:26:04 +08:00
parent 61997fd102
commit f121c01227

View File

@ -37,13 +37,7 @@ export function useFetchSelect(props: FetchSelectProps) {
})
}
onMounted(() => {
loadData()
})
onMounted(() => loadData())
return {
loading,
options,
value
}
return { loading, options, value }
}