Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions frontend/src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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() {
Expand Down