File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
workflow/nodes/tool-lib-node Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ const props = defineProps({
154154const emit = defineEmits ([' clickNodes' , ' onmousedown' ])
155155
156156const apiType = computed (() => {
157- if (route .path .includes (' resource-management' )) {
157+ if (route .path .includes (' shared' )) {
158+ return ' systemShare'
159+ } else if (route .path .includes (' resource-management' )) {
158160 return ' systemManage'
159161 } else {
160162 return ' workspace'
@@ -237,7 +239,7 @@ async function getToolList() {
237239 const res = await loadSharedApi ({
238240 type: ' tool' ,
239241 isShared: folder .currentFolder ?.id === ' share' ,
240- systemType: ' workspace ' ,
242+ systemType: apiType . value ,
241243 }).getToolList ({
242244 folder_id: folder .currentFolder ?.id || user .getWorkspaceId (),
243245 tool_type: activeName .value == ' DATA_SOURCE_TOOL' ? ' DATA_SOURCE' : ' CUSTOM' ,
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ const props = defineProps<{ nodeModel: any }>()
112112const route = useRoute ()
113113
114114const apiType = computed (() => {
115- if (route .path .includes (' resource-management' )) {
115+ if (route .path .includes (' shared' )) {
116+ return ' systemShare'
117+ } else if (route .path .includes (' resource-management' )) {
116118 return ' systemManage'
117119 } else {
118120 return ' workspace'
You can’t perform that action at this time.
0 commit comments