fix(接口自动化): 单步调试时,清理掉之前结果内容

This commit is contained in:
fit2-zhao 2021-07-13 17:55:24 +08:00 committed by fit2-zhao
parent a6978fcb92
commit 1a9d499eae
1 changed files with 5 additions and 1 deletions

View File

@ -401,6 +401,8 @@ export default {
enableCookieShare: this.enableCookieShare, environmentId: this.currentEnvironmentId, hashTree: [this.request], enableCookieShare: this.enableCookieShare, environmentId: this.currentEnvironmentId, hashTree: [this.request],
}; };
this.runData.push(debugData); this.runData.push(debugData);
this.request.requestResult = undefined;
this.request.result = undefined;
/*触发执行操作*/ /*触发执行操作*/
this.reportId = getUUID(); this.reportId = getUUID();
}, },
@ -408,7 +410,7 @@ export default {
this.loading = false; this.loading = false;
}, },
runRefresh(data) { runRefresh(data) {
this.request.requestResult =[data] ; this.request.requestResult = [data];
this.request.result = undefined; this.request.result = undefined;
this.loading = false; this.loading = false;
this.$emit('refReload', this.request, this.node); this.$emit('refReload', this.request, this.node);
@ -459,6 +461,7 @@ export default {
margin: 20px; margin: 20px;
float: right; float: right;
} }
.ms-step-name-api { .ms-step-name-api {
display: inline-block; display: inline-block;
margin: 0 5px; margin: 0 5px;
@ -469,6 +472,7 @@ export default {
white-space: nowrap; white-space: nowrap;
width: 60px; width: 60px;
} }
.ms-tag { .ms-tag {
margin-left: 10px; margin-left: 10px;
} }