fix(接口测试): 修复用例执行结果和表格状态不一致的问题

--bug=1012833 --user=宋天阳 【接口测试】执行case,结果应该是误报,显示成了通过,需要刷新才会变成误报
https://www.tapd.cn/55049933/s/1152659
This commit is contained in:
song-tianyang 2022-05-05 12:38:06 +08:00 committed by 刘瑞斌
parent ffa8449db8
commit 97eef05b7a
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ export default {
this.singleRunId = "";
this.apiCaseList[0].active = true;
if (data) {
let status = data.error > 0 ? "error" : "success";
this.apiCaseList[0].execResult = status
let status = data.status === 'errorReportResult' ? data.status : data.error > 0 ? "error" : "success";
this.apiCaseList[0].execResult = status;
this.apiCaseList[0].responseData = data;
this.$refs.apiCaseItem.runLoading = false;
this.$store.state.currentApiCase = {refresh: true, id: data.id, status: status};