main.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'babel-polyfill' //ie空白
  2. import Vue from 'vue'
  3. import App from './App.vue'
  4. import router from './router'
  5. import store from './store'
  6. import Config from '../config/config' //后台返回状态码
  7. import * as filters from './filter/filters' //全局过滤器
  8. Object.keys(filters).forEach(key => {
  9. Vue.filter(key, filters[key])
  10. })
  11. import ElementUI from 'element-ui'
  12. import 'element-ui/lib/theme-chalk/index.css'
  13. import './assets/css/base.css' //基础样式
  14. import './assets/less/nav.less' //导航样式
  15. import Api from './api/api' //导入api接口
  16. import Axios from './request/http' //导入axios请求
  17. Vue.use(ElementUI)
  18. import './assets/css/property.css'
  19. import './assets/css/toolsfont.css'
  20. import './assets/css/1113798iconfont.css'
  21. import './assets/css/1331132iconfont.css'
  22. Vue.prototype.$api = Api //在vue上挂载api
  23. Vue.prototype.$axios = Axios
  24. Vue.prototype.$config = Config //配置信息
  25. console.log('NODE_ENV:', process.env.NODE_ENV)
  26. Vue.config.productionTip = false
  27. new Vue({
  28. router,
  29. store,
  30. render: h => h(App)
  31. }).$mount('#app')