Skip to content

Commit

Permalink
解决在快速多次操作后,可能用例列表等显示的不是最新的(切换分组导致先发后至)
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Oct 27, 2024
1 parent 75fa360 commit 3338745
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5147,7 +5147,15 @@ https://github.com/Tencent/APIJSON/issues
}
},

lastCaseReqTime: 0,
onTestCaseListResponse: function(show, url, res, err) {
var time = res == null || res.config == null || res.config.metadata == null ? 0 : (res.config.metadata.startTime || 0)
if (time < this.lastCaseReqTime) {
return
}

this.lastCaseReqTime = time;

this.onResponse(url, res, err)

var rpObj = res.data
Expand Down

0 comments on commit 3338745

Please sign in to comment.