From b9a475b11b7eee8e0ef3291485eba2ecdf959a40 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Mon, 27 May 2024 11:15:26 +0800 Subject: [PATCH] Update SearchHistory.vue --- components/i/SearchHistory.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/i/SearchHistory.vue b/components/i/SearchHistory.vue index fb77ba3..665dcfd 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() }) -- GitLab