fix: Front-end error

This commit is contained in:
wxg0103 2025-01-08 16:02:50 +08:00
parent c46b7ab094
commit b07641cf66
2 changed files with 4 additions and 5 deletions

View File

@ -243,7 +243,6 @@ function onmousedown(item: any, data?: any, type?: string) {
}
}
}
console.log('xx', item)
props.workflowRef?.onmousedown(item)
emit('onmousedown', item)
}

View File

@ -214,8 +214,8 @@ const update_field = () => {
if (find_field) {
return {
...item,
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
value: JSON.parse(JSON.stringify(find_field.value)),
default_value: find_field.default_value,
value: find_field.value,
label:
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
}
@ -235,8 +235,8 @@ const update_field = () => {
if (find_field) {
return {
...item,
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
value: JSON.parse(JSON.stringify(find_field.value)),
default_value: find_field.default_value,
value: find_field.value,
label:
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
}