fix(frontend): 展示三个独立发布数据集

This commit is contained in:
caoxiaozhu
2026-07-25 17:04:21 +08:00
parent e9a121cfeb
commit 939a7f8e8f
8 changed files with 64 additions and 90 deletions

View File

@@ -31,7 +31,9 @@ for (const name of [
assert.match(datasetLine, /source: 'task'/, `${name} 必须标记为数据任务来源`)
}
assert.match(viewSource, /const activeTab = ref<DatasetSource>\('upload'\)/)
assert.match(viewSource, /route\.query\.tab === 'task' \? 'task' : 'upload'/)
assert.doesNotMatch(viewSource, /hasSplitCounts|splitLabels/)
assert.match(viewSource, /DATASET_TYPE_MAP\[String\(row\.type\)\.toLowerCase\(\)\]/)
assert.match(
viewSource,
/if \(activeTab\.value === 'task'\) \{\s*return dataList\.value\.filter\(\(item\) => item\.source === 'task'\)\s*\}/,