update: 更新导出TXT内容格式,优化拆书导入逻辑

This commit is contained in:
xiamuceer
2026-03-24 11:29:09 +08:00
parent 97c2226f9d
commit 7a3c2d9a9f
2 changed files with 47 additions and 36 deletions
+25
View File
@@ -688,6 +688,31 @@ export default function BookImport() {
<p className="ant-upload-hint"> .txt 50MB</p>
</Dragger>
<Alert
type="info"
showIcon
message="支持的拆书 TXT 格式要求"
description={
<div style={{ lineHeight: 1.8 }}>
<div>1. <strong>.txt</strong> 使</div>
<div>2. <strong>1 </strong></div>
<div>3. </div>
<div>4. 线</div>
<div style={{ marginTop: 8 }}>
<pre style={{ margin: '8px 0 0', padding: 12, borderRadius: 8, background: token.colorFillAlter, whiteSpace: 'pre-wrap' }}>
{`第1章 初入江湖
这里是第1章正文第一段。
这里是第1章正文第二段。
第2章 雨夜追踪
这里是第2章正文内容。`}
</pre>
</div>
</div>
}
/>
<Space>
<Button
type="primary"