Merge branch 'poc/bpic' into dev

This commit is contained in:
陈昱达
2025-05-14 11:14:27 +08:00

View File

@@ -391,14 +391,24 @@ export default {
})
},
getKnowledgeList() {
docManageDataset({ nameLike: this.nameLike }).then(res => {
if (res) {
this.dataset = res.content.content[0]
this.datasetList = res.content.content
this.getAgentList()
}
})
async getKnowledgeList() {
let { content } = await docManageDataset({ nameLike: this.nameLike })
if (content.content && content.length > 0) {
this.dataset = content.content[0]
this.datasetList = content.content
}
await this.getAgentList()
this.getEcharts()
// docManageDataset({ nameLike: this.nameLike }).then(res => {
// if (res) {
// this.dataset = res.content.content[0]
// this.datasetList = res.content.content
// this.getAgentList()
// }
// })
},
async getAgentList() {
const { content } = await agentList({
@@ -409,8 +419,6 @@ export default {
})
this.agent = content.content[0]
this.agentList = content.content
this.getEcharts()
},
success() {},