mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user