fix(接口自动化): 复制组件放到一起

This commit is contained in:
fit2-zhao 2021-01-18 13:42:55 +08:00
parent 20f7e727ea
commit 6d6853101b
1 changed files with 6 additions and 1 deletions

View File

@ -636,7 +636,12 @@
if (obj.name) {
obj.name = obj.name + '_copy';
}
const index = hashTree.findIndex(d => d.resourceId === row.resourceId);
if (index != -1) {
hashTree.splice(index, 0, obj);
} else {
hashTree.push(obj);
}
this.sort();
this.reload();
}