fix: 修复 chat 视图无法滚动 + SSE 事件重复消费

- scrollResultToLatest 守卫条件兼容 chat 视图
- shortNovel.js 添加 chunkProcessed 标志位避免 H5 双重消费
This commit is contained in:
2026-07-19 16:04:54 +08:00
parent e109e59f1a
commit f6ef0222b3
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -866,7 +866,7 @@ const keepGenerationAtBottom = () => {
}
const scrollResultToLatest = () => {
if (viewState.value !== 'result') return
if (viewState.value !== 'result' && viewState.value !== 'chat') return
nextTick(() => {
measureResultViewport()
pushResultScrollCommand(1000000)