38 lines
1004 B
JavaScript
38 lines
1004 B
JavaScript
import Vue from 'vue'
|
||
import App from './App.vue'
|
||
import router from './router'
|
||
import store from './store'
|
||
|
||
import ElementUI from 'element-ui'
|
||
import 'element-ui/lib/theme-chalk/index.css'
|
||
Vue.use(ElementUI)
|
||
import Plugin from 'v-fit-columns';
|
||
Vue.use(Plugin);
|
||
import * as echarts from 'echarts'
|
||
Vue.prototype.$echarts = echarts
|
||
|
||
|
||
import VideoPlayer from 'vue-video-player'
|
||
import 'video.js/dist/video-js.css'
|
||
import 'vue-video-player/src/custom-theme.css'
|
||
Vue.use(VideoPlayer)
|
||
|
||
import moment from 'moment'
|
||
//定义一个全局过滤器实现日期格式化
|
||
Vue.filter('datefmt',function (input,fmtstring) {//当input为时间戳时,需转为Number类型
|
||
// 使用momentjs这个日期格式化类库实现日期的格式化功能
|
||
return moment(input).format(fmtstring);
|
||
});
|
||
Vue.prototype.$moment = moment
|
||
|
||
import Mixin from './mixins.js';
|
||
Vue.mixin(Mixin)
|
||
|
||
Vue.config.productionTip = false
|
||
|
||
new Vue({
|
||
router,
|
||
store,
|
||
render: h => h(App)
|
||
}).$mount('#app')
|