fix: 新生成短篇剧本刷新到历史列表 + 分类标签从实际数据动态生成

- novel_done 事件处理中调用 store.fetchScripts() 刷新剧本列表
- typeTabs 从硬编码改为 computed,根据实际 length 值动态生成
- activeType 默认值从 'long' 改为 'all'(显示全部)
- 过滤逻辑改为精确匹配 length 字段
- 移除无效的 '风格' 硬编码分类标签

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-21 08:39:14 +08:00
parent 1f5ad3abe2
commit 9a215a89e9
2 changed files with 17 additions and 8 deletions
@@ -1733,6 +1733,8 @@ const handleShortNovelEvent = (event) => {
generationStatus.value = 'idle'
pendingNextResponse.value = false
persistResultMessages()
// 从后端刷新剧本列表,确保新生成的短篇出现在历史中(非阻塞)
store.fetchScripts()
break
}
case 'error':