Commit 2c0a6db82bfa3941e4f6dc3c486643514e23980c

Authored by loveumiko
1 parent 6996c664

fix: 修改看板组件数据源配置复制问题

@@ -139,7 +139,6 @@ @@ -139,7 +139,6 @@
139 const uuid = trackUpdate(); 139 const uuid = trackUpdate();
140 const raw = toRaw(record); 140 const raw = toRaw(record);
141 141
142 - console.log(currentRecord, 'currentRecord');  
143 emit('update:dataSource', [ 142 emit('update:dataSource', [
144 ...allValues, 143 ...allValues,
145 { componentInfo: raw.componentInfo, ...currentRecord, uuid }, 144 { componentInfo: raw.componentInfo, ...currentRecord, uuid },
@@ -174,7 +173,7 @@ @@ -174,7 +173,7 @@
174 173
175 const handleSettingOk = (data: DataSourceType) => { 174 const handleSettingOk = (data: DataSourceType) => {
176 const { uuid } = data; 175 const { uuid } = data;
177 - const _dataSource = cloneDeep(props.dataSource); 176 + const _dataSource = cloneDeep(getFormValues());
178 177
179 const index = _dataSource.findIndex((item) => item.uuid === uuid); 178 const index = _dataSource.findIndex((item) => item.uuid === uuid);
180 179