From 0f41abcff9ef58ba7e09ed80cfe8a42a5429a3a2 Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 18 Feb 2020 19:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/number.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/number.js b/src/utils/number.js index 32be4ca..33426d5 100644 --- a/src/utils/number.js +++ b/src/utils/number.js @@ -97,6 +97,10 @@ export function formatTime(agoTime) { } } +/** + * formatSize + * @param {*} size + */ export function formatSize(size) { if (size < 1024) { return size + 'B'