Skip to content

Commit ccd111e

Browse files
fix(frontend): 新建模块提交参数异常问题修复 #8728
1 parent b603812 commit ccd111e

File tree

1 file changed

+5
-0
lines changed
  • dbm-ui/frontend/src/views/db-configure/hooks

1 file changed

+5
-0
lines changed

dbm-ui/frontend/src/views/db-configure/hooks/useDiff.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ export const useDiff = (data: DiffData, origin: DiffData) => {
4242
const cloneData = _.cloneDeep(unref(data));
4343
const cloneOrigin = _.cloneDeep(unref(origin));
4444

45+
// table 组件设置 rowKey 失效导致自动加了一个 _X_ROW_KEY 字段
46+
cloneData.forEach((item) => {
47+
delete item._X_ROW_KEY;
48+
});
49+
4550
// add items
4651
const created = _.differenceBy(cloneData, cloneOrigin, 'conf_name');
4752
state.count.create = created.length;

0 commit comments

Comments
 (0)