fix(接口测试): 优化场景执行过程中报告步骤实时显示内容,针对误报内容及时展示出来

--bug=1010028 --user=宋天阳 【接口测试】执行场景结果会先显示失败,最后才会变成正确的结果
https://www.tapd.cn/55049933/s/1100412
This commit is contained in:
song-tianyang 2022-01-28 14:09:55 +08:00 committed by jianxing
parent e8389648d0
commit 976e4cae5f
1 changed files with 7 additions and 3 deletions

View File

@ -122,12 +122,16 @@ export default {
}, },
} }
}, },
watch:{ watch: {
request:{ request: {
deep: true, deep: true,
handler(n) { handler(n) {
if(this.request.errorCode){ if (this.request.errorCode) {
this.errorCode = this.request.errorCode; this.errorCode = this.request.errorCode;
} else if (this.request.attachInfoMap && this.request.attachInfoMap.errorReportResult) {
if (this.request.attachInfoMap.errorReportResult !== "") {
this.errorCode = this.request.attachInfoMap.errorReportResult;
}
} }
}, },
} }