parent
f232f4e177
commit
10b3c79125
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue