Improvme ui

This commit is contained in:
liangping
2021-08-06 11:58:54 +08:00
parent 523b952957
commit 4646e335c3
15 changed files with 138 additions and 26 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export function formatToken(token) {
return ''
}
const COUNT_ABBRS = ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']
const COUNT_ABBRS = ['', 'K', 'M', 'B', 'T', 'P', 'E', 'Z', 'Y']
export function formatNumber(count, withAbbr = false, decimals = 2) {
const i = count === 0 ? count : Math.floor(Math.log(count) / Math.log(1000))