Skip to content

Commit f121c01

Browse files
committed
perf: 优化 useFetchSelect 细节
1 parent 61997fd commit f121c01

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/composables/useFetchSelect.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ export function useFetchSelect(props: FetchSelectProps) {
3737
})
3838
}
3939

40-
onMounted(() => {
41-
loadData()
42-
})
43-
44-
return {
45-
loading,
46-
options,
47-
value
48-
}
40+
onMounted(() => loadData())
41+
42+
return { loading, options, value }
4943
}

0 commit comments

Comments
 (0)