优化自动化回归测试的结果显示 · MTBug/APIJSONAuto@d631b4c · GitHub
Skip to content

Commit d631b4c

Browse files
committed
优化自动化回归测试的结果显示
1 parent 69d1212 commit d631b4c

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

apijson/JSONResponse.js

Lines changed: 7 additions & 6 deletions

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@
102102
<li v-for="(item, index) in remotes" >
103103
<a href="javascript:void(0)" @click="restore(item)" > {{(item.version > 0 ? 'V' + item.version : 'V*') + ' ' + item.name + ' ' + item.url}}</a>
104104
<div :style="{ background: item.compareColor }" v-show="item.compare != null && item.compare != 0" style="position: absolute;right: 30px;display: inline-block;">
105-
<button v-show="item.compare != null && item.compare > 0" @click="handleTest(false, index, item)" style="position: relative;color: red">错误,已解决</button>
105+
<button v-show="item.compare != null && item.compare > 0" @click="handleTest(false, index, item)" style="position: relative;color: red">{{ item.error }}</button>
106106
<svg class="icon" style="position: relative;margin-left: 10px" @click="downloadTest(index, item)">
107107
<use xlink:href="svg/icon.svg#export-txt"></use>
108108
</svg>
109-
<button @click="handleTest(true, index, item)">正确,上传</button>
109+
<button @click="handleTest(true, index, item)">这是对的</button>
110110
</div>
111111
<svg v-show="item.userId == User.id" class="icon" style="margin-right: 4px" @click="remove(item, index, true)">
112112
<use xlink:href="svg/icon.svg#trash"></use>

js/main.js

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)