fix: Front-end error
This commit is contained in:
parent
c46b7ab094
commit
b07641cf66
@ -243,7 +243,6 @@ function onmousedown(item: any, data?: any, type?: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('xx', item)
|
|
||||||
props.workflowRef?.onmousedown(item)
|
props.workflowRef?.onmousedown(item)
|
||||||
emit('onmousedown', item)
|
emit('onmousedown', item)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -214,8 +214,8 @@ const update_field = () => {
|
|||||||
if (find_field) {
|
if (find_field) {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
|
default_value: find_field.default_value,
|
||||||
value: JSON.parse(JSON.stringify(find_field.value)),
|
value: find_field.value,
|
||||||
label:
|
label:
|
||||||
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
|
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
|
||||||
}
|
}
|
||||||
@ -235,8 +235,8 @@ const update_field = () => {
|
|||||||
if (find_field) {
|
if (find_field) {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
default_value: JSON.parse(JSON.stringify(find_field.default_value)),
|
default_value: find_field.default_value,
|
||||||
value: JSON.parse(JSON.stringify(find_field.value)),
|
value: find_field.value,
|
||||||
label:
|
label:
|
||||||
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
|
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user