fix(接口测试): 修复复制的场景下子步骤添加同级步骤顺序错误的缺陷

--bug=1013543 --user=王孝刚
【接口测试】场景中含有复制/引用的场景-在复制/引用场景中添加场景断言后选中场景断言添加同级步骤-添加的步骤显示到了复制/引用的场景外面
https://www.tapd.cn/55049933/s/1167022
This commit is contained in:
wxg0103 2022-05-27 20:31:54 +08:00 committed by 刘瑞斌
parent 43d721d684
commit 9766998070
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ export function buttons(this_) {
export function setNode(_this,node) {
if(_this.selectedTreeNode !== undefined){
if(_this.stepFilter.get("SpecialSteps").indexOf(_this.selectedTreeNode.type) !== -1){
_this.scenarioDefinition.splice(_this.selectedTreeNode.index,0,node);
if (_this.selectedNode.parent.data.hashTree) {
_this.selectedNode.parent.data.hashTree.splice(_this.selectedTreeNode.index, 0, node);
} else {
_this.scenarioDefinition.splice(_this.selectedTreeNode.index, 0, node);
}
_this.$store.state.forceRerenderIndex = getUUID();
}else{
_this.selectedTreeNode.hashTree.push(node) ;