File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff 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)"
You can’t perform that action at this time.
0 commit comments