From f7164f681cf9b8e5b24ee7ccb5b20f19b1617f9b Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 23 Jul 2025 11:59:31 +0800 Subject: [PATCH] fix: check ds status --- frontend/src/views/ds/Datasource.vue | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/ds/Datasource.vue b/frontend/src/views/ds/Datasource.vue index 5d4a2360..4dd39791 100644 --- a/frontend/src/views/ds/Datasource.vue +++ b/frontend/src/views/ds/Datasource.vue @@ -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)"