Skip to content

Commit

Permalink
perf: 优化 useFetchSelect 细节
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Nov 25, 2024
1 parent 61997fd commit f121c01
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/composables/useFetchSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ export function useFetchSelect(props: FetchSelectProps) {
})
}

onMounted(() => {
loadData()
})

return {
loading,
options,
value
}
onMounted(() => loadData())

return { loading, options, value }
}

0 comments on commit f121c01

Please sign in to comment.