文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit e896b7ab by ren

将计算分数取整

parent e51fae97
......@@ -184,7 +184,7 @@ export default {
}
this.rightScore = this.rightTokenList.length;
this.allScore = this.tokenList.length;
this.computeScore = (this.rightScore / this.allScore) * 100;
this.computeScore = Math.round((this.rightScore / this.allScore) * 100);
// console.log(this.computeScore)
// console.log("rightTokenList",this.rightTokenList);
// console.log("tokenList",this.tokenList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment