修改显示问题

This commit is contained in:
daihh
2023-01-11 11:25:16 +08:00
parent b87afcbd78
commit fb93e1947c
3 changed files with 4 additions and 4 deletions

View File

@@ -278,7 +278,7 @@ export function testType(type) { //此方法移到tools中
}
export function toScoreTow(score) {// 返回两位小数
if (!score) {
return '';
return '0';
}
if((''+score).indexOf('.')>-1){
return score.toFixed(2);