Use Number.parseInt/parseFloat/isNaN/isFinite instead of globals (S7773)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 00:26:59 +08:00
parent 12068281e9
commit 3768c6e5ec
11 changed files with 27 additions and 27 deletions

View File

@@ -341,7 +341,7 @@ const secondaryStatData = ref(null);
*/
const getPercentLabel = (val) => {
if (Number((val * 100).toFixed(1)) >= 100) return 100;
else return parseFloat((val * 100).toFixed(1));
else return Number.parseFloat((val * 100).toFixed(1));
};
/**