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 })