feat(data-process): 启用智能文档清理预览

This commit is contained in:
caoxiaozhu
2026-07-24 15:06:01 +08:00
parent 3266a6fc09
commit 4544483fc5
3 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ assert.match(
/const \{ buildPreviewsByFile \} = useDataProcessPreviewBuild\(\)/,
'父页面没有通过独立 composable 构建逐文件预览',
)
assert.match(viewSource, /backend-pipeline-v3/, '切分管线版本未升级,旧预览缓存可能被误用')
assert.match(viewSource, /backend-pipeline-v4/, '切分管线版本未升级,旧预览缓存可能被误用')
assert.match(viewSource, /getDataProcessPreview\(taskId\.value,\s*\{ page:\s*1, page_size:\s*500 \}\)/, '预览构建后没有分页读取后端数据')
assert.doesNotMatch(viewSource, /buildPreviewItems\(/, '创建向导仍在本地构建集成预览数据')
@@ -501,7 +501,7 @@ const smartOptionValues = [...smartOptionsSource.matchAll(/^\s*'([^']+)',?$/gm)]
assert.deepEqual(smartOptionValues, expectedSmartPreprocessOptions, '智能预处理内部值与后端语义不一致')
assert.equal(new Set(smartOptionValues).size, smartOptionValues.length, '非结构化智能预处理 value 必须唯一')
for (const descriptionPart of [
'清理无效内容',
'清理页眉页脚、页码、目录和无效内容',
'感知文档结构',
'合并短块',
'预过滤低质量内容',