Skip to content

Commit eb7dc54

Browse files
committed
fix: Tool lib return button
1 parent a846514 commit eb7dc54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/workflow/nodes/tool-lib-node/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
<el-form-item
7474
:label="$t('workflow.nodes.aiChatNode.returnContent.label')"
7575
@click.prevent
76+
v-if="[WorkflowMode.Application, WorkflowMode.ApplicationLoop].includes(workflowMode)"
7677
>
7778
<template #label>
7879
<div class="flex align-center">
@@ -100,9 +101,11 @@ import { useRoute } from 'vue-router'
100101
import NodeContainer from '@/workflow/common/NodeContainer.vue'
101102
import NodeCascader from '@/workflow/common/NodeCascader.vue'
102103
import type { FormInstance } from 'element-plus'
103-
import { ref, computed, onMounted } from 'vue'
104+
import { ref, computed, onMounted, inject } from 'vue'
104105
import { isLastNode } from '@/workflow/common/data'
105106
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
107+
import { WorkflowMode } from '@/enums/application'
108+
const workflowMode = (inject('workflowMode') as WorkflowMode) || WorkflowMode.Application
106109
107110
const props = defineProps<{ nodeModel: any }>()
108111

0 commit comments

Comments
 (0)