fix: check ds status

This commit is contained in:
junjun
2025-07-23 11:44:26 +08:00
parent 2fc9e413c6
commit 6ad151db25
4 changed files with 16 additions and 11 deletions
+11 -7
View File
@@ -95,12 +95,16 @@ const handleEditDatasource = (res: any) => {
})
}
const handleQuestion = (id: string) => {
router.push({
path: '/chat/index',
query: {
start_chat: id,
},
const handleQuestion = (ele: any) => {
datasourceApi.check(ele).then((res: any) => {
if (res) {
router.push({
path: '/chat/index',
query: {
start_chat: ele.id,
},
})
}
})
}
@@ -290,7 +294,7 @@ const back = () => {
:type-name="ele.type_name"
:num="ele.num"
:description="ele.description"
@question="handleQuestion"
@question="handleQuestion(ele)"
@edit="handleEditDatasource(ele)"
@del="deleteHandler(ele)"
@data-table-detail="dataTableDetail(ele)"