Commit 0aeb47eea3ac8162f530b0607da802706956a23c
Merge branch 'fix/data-board-update-lack-id' into 'main_dev'
fix: 修复数据看板更新组件缺少组件id See merge request yunteng/thingskit-front!666
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | ... | @@ -105,7 +105,8 @@ |
| 105 | 105 | if (activeKey === TabKeyEnum.VISUAL) { |
| 106 | 106 | dataSource.value = (dataSourceFormEl.value?.getFormValues() as DataSourceType[]) || []; |
| 107 | 107 | } |
| 108 | - currentRecord.value = basicInfoFromEl.value?.getFormValues() || {}; | |
| 108 | + const value = basicInfoFromEl.value?.getFormValues() || {}; | |
| 109 | + currentRecord.value = { ...unref(currentRecord), ...value }; | |
| 109 | 110 | }; |
| 110 | 111 | |
| 111 | 112 | const handleNewRecord = () => { | ... | ... |