From 21d4dc0cde738279d94a894f759597451f463337 Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Wed, 29 May 2019 15:20:34 +0800 Subject: [PATCH] Replace fileName weith sizeName --- frontend/src/utils/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/utils/utils.js b/frontend/src/utils/utils.js index 06ab82b479..ca4b57cb4f 100644 --- a/frontend/src/utils/utils.js +++ b/frontend/src/utils/utils.js @@ -717,10 +717,10 @@ export const Utils = { let aIndex = sizes.indexOf(aSuffixName); let bIndex = sizes.indexOf(bSuffixName); - let aFileName = a.match(fileSizeName)[0]; - let bFileName = b.match(fileSizeName)[0]; - let aBytes = aFileName * (1000 ** aIndex); - let bBytes = bFileName * (1000 ** bIndex); + let aSizeName = a.match(fileSizeName)[0]; + let bSizeName = b.match(fileSizeName)[0]; + let aBytes = aSizeName * (1000 ** aIndex); + let bBytes = bSizeName * (1000 ** bIndex); return aBytes < bBytes ? -1 : 1; },