From 4c68ee85f3ee53d4131455d629ffb1ee91d0a665 Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Wed, 29 May 2019 16:44:37 +0800 Subject: [PATCH] reult --> result --- frontend/src/utils/utils.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/frontend/src/utils/utils.js b/frontend/src/utils/utils.js index ca4b57cb4f..55a71965bf 100644 --- a/frontend/src/utils/utils.js +++ b/frontend/src/utils/utils.js @@ -619,23 +619,23 @@ export const Utils = { case 'size-asc': comparator = function(a, b) { if (a.size === b.size) { - var result = _this.compareTwoWord(a.repo_name, b.repo_name); + let result = _this.compareTwoWord(a.repo_name, b.repo_name); return result; } - let reult = _this.compareTwoSize(a.size, b.size); - return reult; + let result = _this.compareTwoSize(a.size, b.size); + return result; }; break; case 'size-desc': comparator = function(a, b) { if (a.size === b.size) { - var result = _this.compareTwoWord(a.repo_name, b.repo_name); + let result = _this.compareTwoWord(a.repo_name, b.repo_name); return -result; } - let reult = _this.compareTwoSize(a.size, b.size); - return -reult; + let result = _this.compareTwoSize(a.size, b.size); + return -result; }; break; } @@ -674,22 +674,22 @@ export const Utils = { case 'size-asc': comparator = function(a, b) { if (a.type == 'dir' && b.type == 'dir') { - let reult = _this.compareTwoWord(a.name, b.name); - return reult; + let result = _this.compareTwoWord(a.name, b.name); + return result; } else { - let reult = _this.compareTwoSize(a.size, b.size); - return reult; + let result = _this.compareTwoSize(a.size, b.size); + return result; } }; break; case 'size-desc': comparator = function(a, b) { if (a.type == 'dir' && b.type == 'dir') { - let reult = _this.compareTwoWord(a.name, b.name); - return -reult; + let result = _this.compareTwoWord(a.name, b.name); + return -result; } else { - let reult = _this.compareTwoSize(a.size, b.size); - return -reult; + let result = _this.compareTwoSize(a.size, b.size); + return -result; } }; break;