update moment全局化
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user