Skip to content

Commit b829813

Browse files
committed
CVAuto:解决测完图片后自动显示第一张效果时未用上当前结果
1 parent 5db695b commit b829813

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js/main.js‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12148,12 +12148,6 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1214812148
var isDone = doneCount >= allCount
1214912149
if (isRandom) {
1215012150
this.testRandomProcess = isDone ? '' : ('正在测试: ' + doneCount + '/' + allCount)
12151-
if (isDone) {
12152-
App.currentRandomIndex = -1
12153-
App.isRandomShow = true
12154-
App.isRandomListShow = true
12155-
App.handleTest(false, 0, list[0], null, isRandom) // , false, isCross)
12156-
}
1215712151
} else {
1215812152
this.testProcess = isDone ? (this.isMLEnabled ? '机器学习:已开启' : '机器学习:已关闭') : '正在测试: ' + doneCount + '/' + allCount
1215912153
}
@@ -12192,6 +12186,14 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1219212186
if (DEBUG) {
1219312187
this.log('tests = ' + JSON.stringify(tests, null, ' '))
1219412188
}
12189+
12190+
if (isDone && isRandom) {
12191+
App.currentRandomIndex = -1
12192+
App.isRandomShow = true
12193+
App.isRandomListShow = true
12194+
App.handleTest(false, 0, list[0], null, isRandom) // , false, isCross)
12195+
}
12196+
1219512197
// this.showTestCase(true)
1219612198

1219712199
if (singleCallback != null && singleCallback(res, allCount, list, index, response, cmp, isRandom, accountIndex, justRecoverTest, isCross)) {

0 commit comments

Comments
 (0)