36 lines
837 B
JavaScript
36 lines
837 B
JavaScript
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
|
|
Vue.config.productionTip = false
|
|
import ElementUI from 'element-ui';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
|
|
import "@/rem/rem.js"
|
|
|
|
import axios from "axios";
|
|
Vue.prototype.$axios = axios;
|
|
import api from "./api/index.js";
|
|
Vue.prototype.api = api;
|
|
import './assets/css/main.scss'
|
|
Vue.use(ElementUI);
|
|
import 'video.js/dist/video-js.css'; // 引入video.js的样式
|
|
import 'video.js';
|
|
import 'videojs-contrib-hls'; // 引入支持HLS的插件
|
|
import i18n from "./i18n/index"; // 国际化模块
|
|
|
|
// element-ui的国际化
|
|
Vue.use(ElementUI, {
|
|
i18n: (key, value) => i18n.t(key, value),
|
|
});
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: h => h(App),
|
|
beforeCreate(){
|
|
Vue.prototype.$bus=this
|
|
},
|
|
i18n,
|
|
}).$mount('#app')
|