From 20facfefba26f34df18433839d64c502fa859b3a Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 19 Sep 2019 10:12:17 +0530 Subject: [PATCH] fix typos and unnecessary comments Signed-off-by: Rohit Yadav --- ui/src/utils/device.js | 4 ++-- ui/src/utils/filter.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/utils/device.js b/ui/src/utils/device.js index 0f350f36523..2bdfca8c047 100644 --- a/ui/src/utils/device.js +++ b/ui/src/utils/device.js @@ -13,7 +13,7 @@ export const deviceEnquire = function (callback) { } } - const matchLablet = { + const matchTablet = { match: () => { callback && callback(DEVICE_TYPE.TABLET) } @@ -28,6 +28,6 @@ export const deviceEnquire = function (callback) { // screen and (max-width: 1087.99px) enquireJs .register('screen and (max-width: 576px)', matchMobile) - .register('screen and (min-width: 576px) and (max-width: 1199px)', matchLablet) + .register('screen and (min-width: 576px) and (max-width: 1199px)', matchTablet) .register('screen and (min-width: 1200px)', matchDesktop) } diff --git a/ui/src/utils/filter.js b/ui/src/utils/filter.js index 99f01cdf50b..2172e9689c1 100644 --- a/ui/src/utils/filter.js +++ b/ui/src/utils/filter.js @@ -7,7 +7,7 @@ Vue.filter('NumberFormat', function (value) { if (!value) { return '0' } - const intPartFormat = value.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断 + const intPartFormat = value.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') return intPartFormat })