forked from Gitlink/forgeplus-react
===
This commit is contained in:
parent
0062e84a45
commit
b27f0e796d
|
@ -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
|
||||
|
|
|
@ -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){
|
||||
//避免闪动
|
||||
|
|
Loading…
Reference in New Issue