perf: 优化markdown显示问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user