fix typos and unnecessary comments

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2019-09-19 10:12:17 +05:30
parent c98de8d7a9
commit 20facfefba
2 changed files with 3 additions and 3 deletions

View File

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

View File

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