Skip to content

Commit f7164f6

Browse files
committed
fix: check ds status
1 parent dfe261a commit f7164f6

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

frontend/src/views/ds/Datasource.vue

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,12 @@ const handleEditDatasource = (res: any) => {
9595
})
9696
}
9797
98-
const handleQuestion = (ele: any) => {
99-
datasourceApi.check(ele).then((res: any) => {
100-
if (res) {
101-
router.push({
102-
path: '/chat/index',
103-
query: {
104-
start_chat: ele.id,
105-
},
106-
})
107-
}
98+
const handleQuestion = (id: string) => {
99+
router.push({
100+
path: '/chat/index',
101+
query: {
102+
start_chat: id,
103+
},
108104
})
109105
}
110106
@@ -294,7 +290,7 @@ const back = () => {
294290
:type-name="ele.type_name"
295291
:num="ele.num"
296292
:description="ele.description"
297-
@question="handleQuestion(ele)"
293+
@question="handleQuestion"
298294
@edit="handleEditDatasource(ele)"
299295
@del="deleteHandler(ele)"
300296
@data-table-detail="dataTableDetail(ele)"

0 commit comments

Comments
 (0)