diff --git a/components/i/SearchHistory.vue b/components/i/SearchHistory.vue index fb77ba3b0c976018948578d4a0aad740f40517f9..665dcfdc3aa642f12cbe969081b8c8a449ffe53e 100644 --- a/components/i/SearchHistory.vue +++ b/components/i/SearchHistory.vue @@ -90,9 +90,7 @@ async function getUserHistory () { const { data } = await useRequest('/v1/chat/completion/list') searchHistory.value = data.value && data.value.data || [] } -onMounted(() => { - nextTick(() => { - getUserHistory() - }) +nextTick(() => { + getUserHistory() })