fix(接口自动化): 一键收起问题

--user=郭雨琦 解决节点重新渲染数据处理不完整问题
This commit is contained in:
guoyuqi 2021-11-26 12:20:49 +08:00 committed by 刘瑞斌
parent f232f4e177
commit 10b3c79125
2 changed files with 9 additions and 3 deletions

View File

@ -217,6 +217,9 @@ export default {
this.request.projectId = getCurrentProjectID();
}
this.request.customizeReq = this.isCustomizeReq;
if(this.request.num){
this.isShowNum = true;
}
//
this.getApiInfo();
if (this.request.protocol === 'HTTP') {
@ -450,7 +453,7 @@ export default {
}
})
}
if(this.request.id && this.request.referenced === 'Copy'){
else if(this.request.id && this.request.referenced === 'Copy'){
if(this.request.refType==='CASE'){
this.$get("/api/testcase/get/" + this.request.id, response => {
if (response.data) {
@ -463,7 +466,7 @@ export default {
}
})
}
if(this.request.refType==='API'){
else if(this.request.refType==='API'){
this.$get("/api/definition/get/" + this.request.id, response => {
if (response.data) {
if(response.data.num){

View File

@ -99,6 +99,9 @@ export default {
},
},
created() {
if(this.scenario.num){
this.isShowNum = true;
}
if (!this.scenario.projectId) {
this.scenario.projectId = getCurrentProjectID();
}
@ -131,7 +134,7 @@ export default {
}
})
}
if(this.scenario.id && this.scenario.referenced === 'Copy' && !this.scenario.loaded){
else if(this.scenario.id && this.scenario.referenced === 'Copy' && !this.scenario.loaded){
this.result = this.$get("/api/automation/getApiScenario/" + this.scenario.id, response => {
if (response.data) {
if(response.data.num){