feat: 优化前端数值格式
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user