Issue #148: Done.
This commit is contained in:
@@ -108,8 +108,8 @@ export default {
|
||||
* @returns {string} 轉換完成的百分比字串
|
||||
*/
|
||||
getPercentLabel(val){
|
||||
if((val * 100).toFixed(1) >= 100) return `100%`;
|
||||
else return `${(val * 100).toFixed(1)}%`;
|
||||
if((val * 100).toFixed(1) >= 100) return 100;
|
||||
else return (val * 100).toFixed(1);
|
||||
},
|
||||
/**
|
||||
* setting stats data
|
||||
|
||||
Reference in New Issue
Block a user