update 首页个人信息数据绑定
This commit is contained in:
@@ -45,7 +45,21 @@ Vue.prototype.$_ = _
|
||||
*/
|
||||
import moment from 'moment'
|
||||
import 'moment/locale/zh-cn'
|
||||
moment.locale('zh-cn')
|
||||
moment.updateLocale('zh-cn', {
|
||||
meridiem: function (hour, minute, isLowercase) {
|
||||
if (hour < 9) {
|
||||
return '早上'
|
||||
} else if (hour < 11) {
|
||||
return '上午'
|
||||
} else if (hour < 13) {
|
||||
return '中午'
|
||||
} else if (hour < 18) {
|
||||
return '下午'
|
||||
} else {
|
||||
return '晚上'
|
||||
}
|
||||
}
|
||||
})
|
||||
Vue.prototype.$moment = moment
|
||||
/**
|
||||
* 权限验证全局化
|
||||
|
||||
Reference in New Issue
Block a user