Commit e2f903f2 authored by 涂伟's avatar 涂伟

fix: '表配置bug修复'

parent ce5e09fc
Pipeline #67859 passed with stages
...@@ -534,11 +534,11 @@ const TableView = props => { ...@@ -534,11 +534,11 @@ const TableView = props => {
const item = newData[index]; const item = newData[index];
newData.splice(index, 1, { ...item, ...row }); newData.splice(index, 1, { ...item, ...row });
// 内置字段同步更改 // 内置字段同步更改
if (index < defaultData.length) { // if (index < defaultData.length) {
const newDefaultData = [...defaultData]; // const newDefaultData = [...defaultData];
newDefaultData.splice(index, 1, { ...item, ...row }); // newDefaultData.splice(index, 1, { ...item, ...row });
setDefaultData(newDefaultData); // setDefaultData(newDefaultData);
} // }
setDataSource(newData); setDataSource(newData);
}; };
// 是否显示默认字段 // 是否显示默认字段
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment