From f121c01227053b88658d1ebace2c6c36b03e3e7c Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Mon, 25 Nov 2024 10:26:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20useFetchSelect=20?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/useFetchSelect.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/composables/useFetchSelect.ts b/src/composables/useFetchSelect.ts index 057d76cc..15177453 100644 --- a/src/composables/useFetchSelect.ts +++ b/src/composables/useFetchSelect.ts @@ -37,13 +37,7 @@ export function useFetchSelect(props: FetchSelectProps) { }) } - onMounted(() => { - loadData() - }) - - return { - loading, - options, - value - } + onMounted(() => loadData()) + + return { loading, options, value } }