We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfe261a commit f7164f6Copy full SHA for f7164f6
1 file changed
frontend/src/views/ds/Datasource.vue
@@ -95,16 +95,12 @@ const handleEditDatasource = (res: any) => {
95
})
96
}
97
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
- }
+const handleQuestion = (id: string) => {
+ router.push({
+ path: '/chat/index',
+ query: {
+ start_chat: id,
+ },
108
109
110
@@ -294,7 +290,7 @@ const back = () => {
294
290
:type-name="ele.type_name"
295
291
:num="ele.num"
296
292
:description="ele.description"
297
- @question="handleQuestion(ele)"
293
+ @question="handleQuestion"
298
@edit="handleEditDatasource(ele)"
299
@del="deleteHandler(ele)"
300
@data-table-detail="dataTableDetail(ele)"
0 commit comments