mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Smart Question): The scroll axis cannot scroll upwards
This commit is contained in:
@@ -731,7 +731,7 @@ const sendMessage = async ($event: any = {}) => {
|
||||
|
||||
loading.value = true
|
||||
isTyping.value = true
|
||||
if (isCompletePage.value || innerRef.value) {
|
||||
if (isCompletePage.value && innerRef.value) {
|
||||
scrollTopVal = innerRef.value!.clientHeight
|
||||
scrollTime = setInterval(() => {
|
||||
scrollBottom()
|
||||
@@ -751,6 +751,12 @@ const sendMessage = async ($event: any = {}) => {
|
||||
inputMessage.value = ''
|
||||
|
||||
nextTick(async () => {
|
||||
if (!isCompletePage.value && innerRef.value) {
|
||||
scrollTopVal = innerRef.value!.clientHeight
|
||||
scrollTime = setInterval(() => {
|
||||
scrollBottom()
|
||||
}, 300)
|
||||
}
|
||||
const index = currentChat.value.records.length - 1
|
||||
if (chartAnswerRef.value) {
|
||||
if (chartAnswerRef.value instanceof Array) {
|
||||
|
||||
Reference in New Issue
Block a user