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(() => { onMounted(() => loadData())
loadData()
})
return { return { loading, options, value }
loading,
options,
value
}
} }