diff --git a/pages/chat/index.js b/pages/chat/index.js index 6999467..70a02fc 100644 --- a/pages/chat/index.js +++ b/pages/chat/index.js @@ -93,7 +93,7 @@ Page({ let { data } = e.currentTarget.dataset this.pushUserTemplate(data.text) this.sendMessage(data.text) - + }, // 文字提交发送 @@ -227,9 +227,12 @@ Page({ if (toolText) { } that.setData({ chatList, - aiStatus: 3 + aiStatus: 3, + }, () => { + that.setData({ + scrollTop: 80000, + }) }) - } else if (outStrList.length > 0) { let firstValue = outStrList.shift(); lastChat.chat_content += firstValue