feat: 修复聊天室滚动条问题

main
许宏杰 4 weeks ago
parent 6d1b58d5d1
commit 1e330a6761

@ -13,6 +13,9 @@
size="huge"
:bordered="false"
:segmented="segmented"
:close-on-esc="false"
:mask-closable="false"
:on-after-leave="saveMessage"
>
<div class="ai-container">
<div class="chat-container">
@ -135,6 +138,11 @@ const getDictListist = async () => {
* @param e
*/
const finishInfo = res => {
if (isWatching.value) {
pauseWatching()
isWatching.value = false
console.log('暂停')
}
infoId.value = res.id
messageList.value = []
res.content.map((item, index) => {
@ -144,6 +152,10 @@ const finishInfo = res => {
initEchart(item.chartInstanceItem, item, index)
})
})
setTimeout(() => {
startWatching()
console.log('监听')
}, 2500)
}
/**

@ -136,7 +136,7 @@ const sendHandle = async () => {
messageList.value[lastIndex.value].loading = false
keyWord.value = ''
if (res) {
console.log(res)
if (!targetData.value.filter) targetData.value.filter = filterData[targetData.value.key]
if (res.type === "text" || !targetData.value.filter) {
@ -145,6 +145,7 @@ const sendHandle = async () => {
}
targetData.value.lastMessagesItem = messageList.value[lastIndex.value] //
targetData.value.option.dataset = newFunctionHandle(res.data, res, targetData.value.filter)
return
}
window['$message'].warning('没有拿到返回值,请检查接口!')

Loading…
Cancel
Save