-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
55 lines (50 loc) · 1.25 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import axios from 'axios';
import store from "./store";
import echarts from "echarts";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import api from "./api/index.js";
import path from "./api/path.js";
import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
//引入 hls,视频直播(m3u8)必须引入的
import 'videojs-contrib-hls'
//播放rtmp视频
import 'videojs-flash'
Vue.use(VideoPlayer)
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
Vue.use(Antd);
Vue.use(echarts);
Vue.prototype.$api = api;
Vue.prototype.$urlPath = path;
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
const axiosInstance = axios.create({
baseURL : "http://112.124.28.130:8088/",
timeout: 600000,
});
axiosInstance.interceptors.response.use(
(response) => {
return response;
},
(error) => {
return Promise.reject(error);
}
);
export { axiosInstance };
Vue.prototype.$axios = axiosInstance;
new Vue({
router,
store,
render: (h) => h(App),
}).$mount("#app");
// new Vue({
// router,
// store,
// render: (h) => h(App),
// }).$mount("#app");