feat(knowledge): 实现题词功能并优化知识库创建流程- 新增题词预览组件和相关 API 接口

- 重构知识库创建流程,支持自动和自定义题词
- 优化题词结果展示和保存逻辑
- 调整知识库详情页面布局
This commit is contained in:
du.meimei
2025-04-15 17:33:30 +08:00
parent dcc4b9bf68
commit 71d1888a8e
8 changed files with 195 additions and 35 deletions

View File

@@ -88,19 +88,9 @@ export default {
if (this.active === 0) {
this.$refs.stepPreProcessing.uploadFiled()
} else if (this.active === 1) {
const res = await this.$refs.splitConfig.nextStep(this.documentId)
if (res.result === '0') {
// 处理成功的情况
console.log('拆分成功', res.content)
this.active++
}
await this.$refs.splitConfig.nextStep(this.documentId)
} else if (this.active === 2) {
const res = await this.$refs.words.nextStep(this.documentId)
if (res.result === '0') {
// 处理成功的情况
console.log('拆分成功', res.content)
this.$message.success('创建成功')
}
await this.$refs.words.nextStep(this.documentId)
}
},
// 预览完成