修复请求失败数显示错误的bug,修改断言显示格式

This commit is contained in:
q4speed 2020-05-20 16:28:12 +08:00
parent df9f21d270
commit 5a0863e9a8
2 changed files with 6 additions and 6 deletions

View File

@ -17,10 +17,10 @@
</div>
</el-col>
<el-col :span="2">
{{error}}
{{request.error}}
</el-col>
<el-col :span="2">
{{request.passAssertions}} / {{request.totalAssertions}}
{{assertion}}
</el-col>
<el-col :span="2">
<el-tag size="mini" type="success" v-if="request.success">
@ -72,9 +72,9 @@
},
computed: {
error() {
return this.request.totalAssertions - this.request.passAssertions;
}
assertion() {
return this.request.passAssertions + " / " + this.request.totalAssertions;
},
}
}
</script>

View File

@ -59,7 +59,7 @@
computed: {
assertion() {
return this.scenario.passAssertions + "/" + this.scenario.totalAssertions;
return this.scenario.passAssertions + " / " + this.scenario.totalAssertions;
},
success() {
return this.scenario.error === 0;