fix(接口测试): 修复场景步骤中含有302内容数据时无法远程异步加载步骤内容的问题
修复场景步骤中含有302内容数据时无法远程异步加载步骤内容的问题
This commit is contained in:
parent
d58ca07a2c
commit
fae7525f2e
|
@ -260,20 +260,15 @@ export default {
|
|||
element.parentNode.removeChild(element);
|
||||
},
|
||||
loadRequestInfoExpand() {
|
||||
if( !this.request.responseResult || (!this.request.responseResult.body && this.request.responseResult.body === null)){
|
||||
if (!this.request.responseResult || this.request.responseResult.body === null || this.request.responseResult.body === undefined) {
|
||||
this.$get("/api/scenario/report/selectReportContent/" + this.stepId, response => {
|
||||
let requestResult = response.data;
|
||||
if (requestResult) {
|
||||
this.requestInfo = requestResult;
|
||||
}
|
||||
this.requestInfo = response.data;
|
||||
this.$nextTick(() => {
|
||||
this.requestInfo.loading = false;
|
||||
});
|
||||
});
|
||||
}else {
|
||||
if (this.request.responseResult && (this.request.responseResult.body || this.request.responseResult.body === '')) {
|
||||
this.requestInfo = this.request;
|
||||
}
|
||||
} else {
|
||||
this.requestInfo = this.request;
|
||||
}
|
||||
},
|
||||
active() {
|
||||
|
|
Loading…
Reference in New Issue