fix(接口测试): 修复引用场景步骤能添加同级步骤问题
This commit is contained in:
parent
6434c84110
commit
5e0c92f1f6
|
@ -1172,6 +1172,11 @@ export default {
|
|||
}
|
||||
},
|
||||
addComponent(type, plugin) {
|
||||
if (this.selectedNode && this.selectedNode.parent
|
||||
&& this.selectedNode.parent.data && this.selectedNode.parent.data.disabled) {
|
||||
this.$warning(this.$t('api_test.scenario.scenario_warning'));
|
||||
return;
|
||||
}
|
||||
setComponent(type, this, plugin);
|
||||
},
|
||||
nodeClick(data, node) {
|
||||
|
|
|
@ -234,7 +234,7 @@ export default {
|
|||
}
|
||||
}
|
||||
if (this.scenario && this.scenario.hashTree && this.node.expanded) {
|
||||
this.scenario.disabled = true;
|
||||
this.scenario.disabled = (this.scenario.id && this.scenario.referenced === 'REF');
|
||||
this.recursive(this.scenario.hashTree, this.scenario.projectId, (this.scenario.id && this.scenario.referenced === 'REF'));
|
||||
}
|
||||
this.reload();
|
||||
|
|
Loading…
Reference in New Issue