fix(接口测试): 修复用例执行结果和表格状态不一致的问题
--bug=1012833 --user=宋天阳 【接口测试】执行case,结果应该是误报,显示成了通过,需要刷新才会变成误报 https://www.tapd.cn/55049933/s/1152659
This commit is contained in:
parent
ffa8449db8
commit
97eef05b7a
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue