This commit is contained in:
caishi 2020-11-25 12:39:59 +08:00
parent 0062e84a45
commit b27f0e796d
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ export default class TPMevaluation extends Component {
}else{
let sum=parseInt(100/newevaluationlist.length);
for(var i=0; i<newevaluationlist.length;i++){
if(i+1!=newevaluationlist.length){
if(i+1 !== newevaluationlist.length){
newevaluationlist[i].score=sum
}else{
newevaluationlist[i].score=sum+100%newevaluationlist.length

View File

@ -60,7 +60,7 @@ export default class LCCountDownButton extends Component {
const {id,changeWithCount} = this.props;
for(var i = 0 ; i<timeRecodes.length ; i ++){
let obj = timeRecodes[i];
if (obj.id == id){
if (obj.id === id){
let liveTime = Date.now() - obj.startTime
if (liveTime < obj.deathCount * 1000){
//避免闪动