File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
ui/src/views/application/component Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -196,13 +196,17 @@ function getList() {
196196 const folder_id = currentFolder .value ?.id || user .getWorkspaceId ()
197197 loadSharedApi ({
198198 type: ' tool' ,
199- systemType: apiType .value ,
199+ isShared: folder_id === ' share' ,
200+ systemType: ' workspace' ,
201+ }).getToolList ({
202+ folder_id: folder_id ,
203+ tool_type: ' CUSTOM'
204+ }).then ((res : any ) => {
205+ toolList .value = res .data ?.tools || res .data || []
206+ toolList .value = toolList .value ?.filter ((item : any ) => item .is_active )
207+ searchData .value = res .data .tools || res .data
208+ searchData .value = searchData .value ?.filter ((item : any ) => item .is_active )
200209 })
201- .getToolList ({ folder_id }, apiLoading )
202- .then ((res : any ) => {
203- toolList .value = uniqueArray ([... toolList .value , ... res .data .tools ], ' id' )
204- searchData .value = res .data .tools
205- })
206210}
207211
208212defineExpose ({ open })
You can’t perform that action at this time.
0 commit comments