提交 525a0cc8 编写于 作者: Z Zachary

feat: add util method

上级 171c8369
export function processCount(count) {
if (count > 10000000) {
return (count / 10000000).toFixed(2) + "亿";
} else if (count > 1000) {
return (count / 1000).toFixed(2) + "";
}
return count;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册