fix(web): 大纲生成只替换目标卷+重排确认+窗口徽标用lucide + 伏笔看板中文化/单一登记入口/Field表单
This commit is contained in:
@@ -52,7 +52,12 @@ export function useOutline(initial: OutlineChapterView[]): UseOutline {
|
||||
toast(friendly.text, "error");
|
||||
return;
|
||||
}
|
||||
setChapters(data.chapters ?? []);
|
||||
// 只替换目标卷的条目,保留其它卷(「AI 排大纲」是单卷操作,整列覆盖会误删别卷)。
|
||||
const generated = data.chapters ?? [];
|
||||
setChapters((prev) => [
|
||||
...prev.filter((ch) => ch.volume !== volume),
|
||||
...generated,
|
||||
]);
|
||||
setStatus("ready");
|
||||
toast("大纲已生成", "success");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user