Skip to content

Commit 51a4849

Browse files
fix: Tool workflow edit issue
1 parent e9d4ccd commit 51a4849

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

ui/src/views/tool/WorkflowFormDialog.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ const submitHandle = async () => {
197197
.postTool({ ...workflowForm.value, folder_id: folder.currentFolder?.id, code: 'None' })
198198
.then((res: any) => {
199199
MsgSuccess(t('common.createSuccess'))
200-
emit('refresh', res.data)
201200
return user.profile().then(() => {
202201
const folderId = res.data.scope === 'SHARED' ? 'shared' : res.data.folder_id
203202
router.push({

ui/src/views/tool/component/ToolListContainer.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@
490490
<ExecutionRecordDrawer ref="toolRecordDrawerRef" />
491491
<WorkflowFormDialog
492492
ref="workflowFormDialogRef"
493-
@refresh="toWorkflow"
493+
@refresh="refresh"
494494
:title="workflowFormDialogtitle"
495495
></WorkflowFormDialog>
496496
</ContentContainer>
@@ -870,7 +870,6 @@ const openCreateWorkflowDialog = (data?: any) => {
870870
loadSharedApi({ type: 'tool', systemType: apiType.value })
871871
.getToolById(data?.id, loading)
872872
.then((res: any) => {
873-
toWorkflow(res.data)
874873
workflowFormDialogRef.value?.open(res.data)
875874
})
876875
} else {

ui/src/workflow/nodes/tool-base-node/component/input/InputFieldFormDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
:placeholder="$t('dynamicsForm.paramForm.desc.placeholder')"
3939
:maxlength="128"
4040
show-word-limit
41-
@blur="form.label = form.desc?.trim()"
41+
@blur="form.desc = form.desc?.trim()"
4242
/>
4343
</el-form-item>
4444
<el-form-item :label="$t('views.tool.form.dataType.label')">

0 commit comments

Comments
 (0)