34 lines
810 B
JavaScript
34 lines
810 B
JavaScript
|
import Vue from 'vue'
|
||
|
import App from './App.vue'
|
||
|
//引入ElementUI组件库
|
||
|
import ElementUI from 'element-ui';
|
||
|
//引入ElementUI的所有样式
|
||
|
import 'element-ui/lib/theme-chalk/index.css';
|
||
|
import router from '@/components/router/index'
|
||
|
//引入echarts文件
|
||
|
import * as echarts from 'echarts'
|
||
|
import axios from 'axios'
|
||
|
// highlight.js代码高亮指令
|
||
|
import Highlight from '@/components/utils/highlight';
|
||
|
// eslint-disable-next-line
|
||
|
import lineNUmber from '@/components/utils/line-number';
|
||
|
Vue.use(Highlight);
|
||
|
|
||
|
Vue.use(lineNUmber);
|
||
|
Vue.prototype.$echarts = echarts
|
||
|
|
||
|
|
||
|
//关闭Vue的生产提示
|
||
|
Vue.config.productionTip = false
|
||
|
//使用ElementUI
|
||
|
Vue.use(ElementUI)
|
||
|
Vue.use(axios)
|
||
|
Vue.config.productionTip = false
|
||
|
|
||
|
Vue.prototype.$axios = axios
|
||
|
|
||
|
new Vue({
|
||
|
router,
|
||
|
render: h => h(App),
|
||
|
}).$mount('#app')
|