mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-08 07:28:37 +08:00
feat:二维码优化和保存
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export function formatCount(n: number): string {
|
||||
if (n >= 100_000_000) return (n / 100_000_000).toFixed(1) + '亿';
|
||||
if (n >= 10_000) return (n / 10_000).toFixed(1) + '万';
|
||||
|
||||
return String(n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user