fix(接口自动化): 复制组件放到一起
This commit is contained in:
parent
20f7e727ea
commit
6d6853101b
|
@ -636,7 +636,12 @@
|
||||||
if (obj.name) {
|
if (obj.name) {
|
||||||
obj.name = obj.name + '_copy';
|
obj.name = obj.name + '_copy';
|
||||||
}
|
}
|
||||||
hashTree.push(obj);
|
const index = hashTree.findIndex(d => d.resourceId === row.resourceId);
|
||||||
|
if (index != -1) {
|
||||||
|
hashTree.splice(index, 0, obj);
|
||||||
|
} else {
|
||||||
|
hashTree.push(obj);
|
||||||
|
}
|
||||||
this.sort();
|
this.sort();
|
||||||
this.reload();
|
this.reload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue