perf: 优化markdown显示问题

This commit is contained in:
chenchun
2026-01-28 16:27:07 +08:00
parent 74e936c6d3
commit adafb65221
2 changed files with 8 additions and 14 deletions

View File

@@ -202,13 +202,6 @@ function handleDataChunk(chunk: AnyObject) {
latest.content += parsed.content;
}
}
// 流式输出时保持滚动条在底部(等待 DOM 更新后再滚动)
nextTick(() => {
requestAnimationFrame(() => {
bubbleListRef.value?.scrollToBottom();
});
});
}
catch (err) {
console.error('解析数据时出错:', err);
@@ -1248,4 +1241,7 @@ onUnmounted(() => {
}
}
}
.footer-time .el-button{
margin-left: 10px;
}
</style>