From 31923d682d1a23c4c221c0a5f49823050a1c5930 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Wed, 7 Jan 2026 17:39:53 +0800 Subject: [PATCH] fix: Get model list in share --- ui/src/workflow/nodes/ai-chat-node/index.vue | 15 +++++--- .../workflow/nodes/image-generate/index.vue | 6 ++-- .../workflow/nodes/image-to-video/index.vue | 18 ++++------ .../workflow/nodes/image-understand/index.vue | 2 ++ .../nodes/intent-classify-node/index.vue | 2 ++ ui/src/workflow/nodes/mcp-node/index.vue | 2 ++ .../nodes/parameter-extraction-node/index.vue | 2 ++ ui/src/workflow/nodes/question-node/index.vue | 2 ++ ui/src/workflow/nodes/reranker-node/index.vue | 36 ++++++------------- .../nodes/speech-to-text-node/index.vue | 2 ++ .../nodes/text-to-speech-node/index.vue | 2 ++ ui/src/workflow/nodes/text-to-video/index.vue | 10 +++--- .../workflow/nodes/video-understand/index.vue | 3 +- 13 files changed, 49 insertions(+), 53 deletions(-) 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 @@