Blame view

src/main.js 874 Bytes
22fb20b3   songchongxian   城市停车运营监控
1
2
3
  import Vue from 'vue'
  import App from './App'
  import router from './router/router'
a945302e   liuqimichale   axios
4
5
6
7
  
  import axios from 'axios'
  import Qs from 'qs'
  //QS是axios库中带的,不需要我们再npm安装一个
74b5bee2   liuqimichale   全局 接口参数
8
9
  import global_ from './api/variables'
  Vue.prototype.GLOBAL = global_
a945302e   liuqimichale   axios
10
11
12
  
  Vue.prototype.axios = axios;
  Vue.prototype.qs = Qs
22fb20b3   songchongxian   城市停车运营监控
13
14
15
  //import { powerRouter } from './router';
  import store from './store';
  import ElementUI from 'element-ui'
e52cf1d6   liuqimichale   添加丹阳
16
17
  
  Vue.prototype.$axios = axios
22fb20b3   songchongxian   城市停车运营监控
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  //import 'element-ui/lib/theme-chalk/index.css'
  Vue.use(ElementUI)
  require('element-ui/lib/theme-chalk/index.css')
  //require('normalize.css')
  require('./style/common.css')
  import './config/china' //引入外部js
  //import 'lib-flexible/flexible'
  //Vue.config.productionTip = false
  new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: { App },
  
  });
  //if (module.hot) {
  //  module.hot.accept();
  //}
  //