修复请求失败数显示错误的bug,修改断言显示格式
This commit is contained in:
parent
df9f21d270
commit
5a0863e9a8
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue