fix(接口测试): 修复删除引用的场景后,无法再次添加步骤的缺陷
--bug=1030999 --user=王孝刚 【接口测试】编辑场景-引用场景-展开选中子步骤-删除引用的场景-点击导入场景失败 https://www.tapd.cn/55049933/s/1434447
This commit is contained in:
parent
5c5fe605f6
commit
9467ce3399
|
@ -1512,10 +1512,12 @@ export default {
|
||||||
this.showAll();
|
this.showAll();
|
||||||
this.buttonData = buttons(this);
|
this.buttonData = buttons(this);
|
||||||
this.initPlugins();
|
this.initPlugins();
|
||||||
|
this.selectedTreeNode = undefined;
|
||||||
|
this.selectedNode = undefined;
|
||||||
},
|
},
|
||||||
fabClick() {
|
fabClick() {
|
||||||
if (this.operatingElements && this.operatingElements.length < 1) {
|
if (this.operatingElements && this.operatingElements.length < 1) {
|
||||||
if ((this.selectedTreeNode && this.selectedTreeNode.referenced === 'REF') || this.selectedTreeNode.disabled) {
|
if ((this.selectedTreeNode && this.selectedTreeNode.referenced === 'REF') || (this.selectedTreeNode.disabled && this.selectedTreeNode.disabled)) {
|
||||||
this.$warning(this.$t('api_test.scenario.scenario_warning'));
|
this.$warning(this.$t('api_test.scenario.scenario_warning'));
|
||||||
} else {
|
} else {
|
||||||
this.$warning(this.$t('api_test.scenario.scenario_step_warning'));
|
this.$warning(this.$t('api_test.scenario.scenario_step_warning'));
|
||||||
|
|
|
@ -600,6 +600,7 @@ export default {
|
||||||
outsideClick(e) {
|
outsideClick(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this.showAll();
|
this.showAll();
|
||||||
|
this.selectedNode = undefined;
|
||||||
},
|
},
|
||||||
fabClick() {
|
fabClick() {
|
||||||
if (this.operatingElements.length < 1) {
|
if (this.operatingElements.length < 1) {
|
||||||
|
|
Loading…
Reference in New Issue