This commit is contained in:
bridge
2025-11-22 15:57:59 +08:00
parent 6a6cc9e1c5
commit a65a23726e
14 changed files with 103 additions and 214 deletions

View File

@@ -2,12 +2,6 @@
* 格式化工具
*/
export function formatNumber(num: number): string {
if (num >= 10000) {
return (num / 10000).toFixed(1) + '万';
}
return num.toString();
}
export function formatHp(current: number, max: number): string {
return `${Math.floor(current)} / ${max}`;