diff --git a/ui/src/workflow/nodes/ai-chat-node/index.vue b/ui/src/workflow/nodes/ai-chat-node/index.vue index fce3a9d80ec..b3b16fd7dc3 100644 --- a/ui/src/workflow/nodes/ai-chat-node/index.vue +++ b/ui/src/workflow/nodes/ai-chat-node/index.vue @@ -425,6 +425,8 @@ const { const apiType = computed(() => { if (route.path.includes('resource-management')) { return 'systemManage' + } else if (route.path.includes('shared')) { + return 'systemShare' } else { return 'workspace' } @@ -651,11 +653,14 @@ function getMcpToolSelectOptions() { const applicationSelectOptions = ref([]) function getApplicationSelectOptions() { - loadSharedApi({ type: 'application', systemType: apiType.value }) - .getAllApplication({ folder_id: resource.value?.workspace_id }) - .then((res: any) => { - applicationSelectOptions.value = res.data.filter((item: any) => item.is_publish) - }) + ;(apiType.value === 'systemShare' + ? Promise.resolve({ data: [] }) + : loadSharedApi({ type: 'application', systemType: apiType.value }).getAllApplication({ + folder_id: resource.value?.workspace_id, + }) + ).then((res: any) => { + applicationSelectOptions.value = res.data.filter((item: any) => item.is_publish) + }) } const applicationDialogRef = ref() diff --git a/ui/src/workflow/nodes/image-generate/index.vue b/ui/src/workflow/nodes/image-generate/index.vue index a70f4a3458a..f3e3c6aba41 100644 --- a/ui/src/workflow/nodes/image-generate/index.vue +++ b/ui/src/workflow/nodes/image-generate/index.vue @@ -98,9 +98,7 @@