feat(ai写作): 历史回看右侧成稿可编辑并保存回历史记录
- 后端新增 PUT /api/ai-writing/sessions/{id}/draft(属主校验,draft_title 可选)
- 前端历史模式放开只读,工具栏新增「保存」按钮持久化修改
- 实时写作完成态保持原样(仅导出,不落库)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
304e1b637a
commit
42f55251f2
7 files changed
+126
-6
No files matched your search
@@ -102,7 +102,8 @@ export function AIWritingDraftPanel() {
|
||||
<TextArtifactRenderer
|
||||
content={textContent}
|
||||
isStreaming={!showCompletedDraftView}
|
||||
readOnly={isHistoryMode}
|
||||
readOnly={false}
|
||||
onSaveDraft={isHistoryMode ? history?.saveHistoryDraft : undefined}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user