feat: 优化前端数值格式

This commit is contained in:
tbphp committed 2025-07-14 08:49:26 +08:00
1 parent 807b766e79
commit f759c17fa0
3 files changed
+22 -22

No files matched your search

+3 -3
View File
@@ -108,9 +108,9 @@ async function handleDelete() {
}
function formatNumber(num: number): string {
if (num >= 1000000) {
return `${(num / 1000000).toFixed(1)}M`;
}
// if (num >= 1000000) {
// return `${(num / 1000000).toFixed(1)}M`;
// }
if (num >= 1000) {
return `${(num / 1000).toFixed(1)}K`;
}