update moment全局化

This commit is contained in:
2021-04-28 09:32:40 +08:00
parent bfb61e728c
commit a52dd1bdb2
7 changed files with 22 additions and 33 deletions

View File

@@ -40,7 +40,16 @@ Vue.prototype.$api = api
*/
import _ from 'lodash'
Vue.prototype.$_ = _
/**
* moment全局化
*/
import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')
Vue.prototype.$moment = moment
/**
* 权限验证全局化
*/
import { auth } from './components/authorized'
Vue.prototype.$auth = auth