mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 15:47:23 +08:00
🌈 style: 优化类型
This commit is contained in:
+2
-2
@@ -24,8 +24,8 @@ export const secondToMinute = (s: number) => {
|
||||
};
|
||||
|
||||
// 格式化数字 千,万, 百万, 千万,亿
|
||||
export const formatNumber = (num: any) => {
|
||||
num *= 1;
|
||||
export const formatNumber = (num: string | number) => {
|
||||
num = Number(num);
|
||||
if (num < 10000) {
|
||||
return num;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user