Skip to content

Commit

Permalink
fix(frontend): 新建模块提交参数异常问题修复 #8728
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia authored and iSecloud committed Dec 19, 2024
1 parent b603812 commit ef77327
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbm-ui/frontend/src/views/db-configure/hooks/useDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ export const useDiff = (data: DiffData, origin: DiffData) => {
const cloneData = _.cloneDeep(unref(data));
const cloneOrigin = _.cloneDeep(unref(origin));

// table 组件设置 rowKey 失效导致自动加了一个 _X_ROW_KEY 字段
cloneData.forEach((item) => {
delete item._X_ROW_KEY;
});

// add items
const created = _.differenceBy(cloneData, cloneOrigin, 'conf_name');
state.count.create = created.length;
Expand Down

0 comments on commit ef77327

Please sign in to comment.