fix(接口测试): 编辑某个场景页面收起问题
This commit is contained in:
parent
87e35bbbc6
commit
95dca84106
|
@ -889,10 +889,14 @@
|
|||
}
|
||||
},
|
||||
nodeExpand(data, node) {
|
||||
node.expanded = true;
|
||||
if (data && data.resourceId && this.expandedNode.indexOf(data.resourceId) === -1) {
|
||||
this.expandedNode.push(data.resourceId);
|
||||
}
|
||||
},
|
||||
nodeCollapse(data, node) {
|
||||
node.expanded = false;
|
||||
if (data && data.resourceId) {
|
||||
this.expandedNode.splice(this.expandedNode.indexOf(data.resourceId), 1);
|
||||
}
|
||||
},
|
||||
setFiles(item, bodyUploadFiles, obj) {
|
||||
if (item.body) {
|
||||
|
@ -1166,7 +1170,7 @@
|
|||
//改变每个节点的状态
|
||||
for (let i in this.scenarioDefinition) {
|
||||
if (this.scenarioDefinition[i]) {
|
||||
if (this.expandedStatus) {
|
||||
if (this.expandedStatus && this.expandedNode.indexOf(this.scenarioDefinition[i].resourceId) === -1) {
|
||||
this.expandedNode.push(this.scenarioDefinition[i].resourceId);
|
||||
}
|
||||
this.scenarioDefinition[i].active = this.expandedStatus;
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
let data = JSON.parse(response.data.content);
|
||||
this.response = data;
|
||||
this.$set(this.apiItem, 'responseData', data);
|
||||
this.isActive = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue