Browse Source

feat: DraftChapter 添加 rawContent 字段用于草稿编辑备份

Mochocyang 3 months ago
parent
commit
1aeaa8be31
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/novel/story-simulation/types.ts

+ 2 - 0
src/lib/novel/story-simulation/types.ts

@@ -256,6 +256,8 @@ export interface DraftChapter {
   title: string
   title: string
   content: string
   content: string
   correspondingNode: number
   correspondingNode: number
+  /** 原始 AI 生成内容(编辑前的备份),未编辑时为 undefined */
+  rawContent?: string
 }
 }
 
 
 // ── 框架绑定 ──
 // ── 框架绑定 ──