This commit is contained in:
daihh
2023-01-06 19:48:55 +08:00
parent 153be9e6af
commit dc127205d1
2 changed files with 3 additions and 3 deletions

View File

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