Skip to content

Commit c6e9a99

Browse files
wxg0103shaohuzhang1
authored andcommitted
fix: Front-end error
(cherry picked from commit b07641c)
1 parent e6e4b68 commit c6e9a99

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ui/src/views/application-workflow/component/DropdownMenu.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ function onmousedown(item: any, data?: any, type?: string) {
243243
}
244244
}
245245
}
246-
console.log('xx', item)
247246
props.workflowRef?.onmousedown(item)
248247
emit('onmousedown', item)
249248
}

ui/src/workflow/nodes/application-node/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ const update_field = () => {
214214
if (find_field) {
215215
return {
216216
...item,
217-
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
218-
value: JSON.parse(JSON.stringify(find_field.value)),
217+
default_value: find_field.default_value,
218+
value: find_field.value,
219219
label:
220220
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
221221
}
@@ -235,8 +235,8 @@ const update_field = () => {
235235
if (find_field) {
236236
return {
237237
...item,
238-
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
239-
value: JSON.parse(JSON.stringify(find_field.value)),
238+
default_value: find_field.default_value,
239+
value: find_field.value,
240240
label:
241241
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
242242
}

0 commit comments

Comments
 (0)