fix: check ds status

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