From 94ef6534821598e2fb10c713e32a01e37eb1cbe3 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Thu, 23 May 2024 11:51:10 +0800 Subject: [PATCH] Update [id].vue --- pages/search/[id].vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 996572f..51153d3 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -76,7 +76,7 @@ function handleUpdateQuery(query) { } // 是否停止自动滚动到底部 const isAutoToBottom = ref(true) -watch(() => { +watchEffect(() => { if (directions.top) { isAutoToBottom.value = false } @@ -145,7 +145,7 @@ const handleFormFetchData = (fetchData) => { if (Object.keys(message).length === 0) return const { meta, choices } = message const index = editIndex.value - nextTick(() => { + setTimeout(() => { scrollToView() }) // 处理报错信息 -- GitLab