feat:keep a record of historical practice

This commit is contained in:
Zyronon
2025-10-01 23:00:32 +08:00
parent b672115e20
commit a3133a7f15
7 changed files with 248 additions and 228 deletions

View File

@@ -114,6 +114,7 @@ export function genArticleSectionData(article: Article): number {
item = item.trim()
//如果没有空格,导致修改一行一行的数据时,汇总时全没有空格了,库无法正常断句
//所以要保证最后一个是空格但防止用户打N个空格就去掉再加上一个空格只需要一个即可
//2025/10/1:最后一句不需要空格
if (i < arr.length - 1) item += ' '
let sentence: Sentence = cloneDeep({
text: item,
@@ -127,7 +128,6 @@ export function genArticleSectionData(article: Article): number {
sections = sections.filter(v => v.length)
article.sections = sections
console.log(sections)
let failCount = 0
let translateList = article.textTranslate?.split('\n\n') || []