feat(Smart Question): In the conversation window, when there are many messages and a scroll bar appears, the scroll bar will automatically scroll to the bottom

This commit is contained in:
dataeaseShu
2025-09-19 16:23:36 +08:00
committed by dataeaseShu
parent b566e695ad
commit 51c419df32
+6 -3
View File
@@ -501,7 +501,7 @@ let scrollTopVal = 0
let scrolling = false
const scrollBottom = () => {
if (scrolling) return
if (!isTyping.value) {
if (!isTyping.value && !getRecommendQuestionsLoading.value) {
clearInterval(scrollTime)
}
chatListRef.value!.setScrollTop(innerRef.value!.clientHeight)
@@ -671,11 +671,14 @@ function quickAsk(question: string) {
}
const chartAnswerRef = ref()
const getRecommendQuestionsLoading = ref(false)
async function onChartAnswerFinish(id: number) {
getRecommendQuestionsLoading.value = true
loading.value = false
isTyping.value = false
getRecommendQuestions(id)
getRecommendQuestions(id).finally(() => {
getRecommendQuestionsLoading.value = false
})
}
function onChartAnswerError() {