update 首页个人信息数据绑定

This commit is contained in:
2021-04-28 09:43:44 +08:00
parent a52dd1bdb2
commit 449d27d5a1
2 changed files with 19 additions and 8 deletions

View File

@@ -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
/**
* 权限验证全局化