main.js 732 B

1234567891011121314151617181920212223242526272829
  1. // The Vue build version to load with the `import` command
  2. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  3. import Vue from 'vue'
  4. import App from './App'
  5. import router from './router'
  6. import ElementUI from 'element-ui'
  7. import 'element-ui/lib/theme-chalk/index.css'
  8. import Api from "./api/config.js"
  9. import store from './store/store.js'
  10. import axios from 'axios'
  11. import './assets/css/base.css'
  12. require('./mock/index.js')//此部分引入的是我们所编写的mockjs文档
  13. Vue.config.productionTip = false
  14. Vue.prototype.Api=Api;
  15. Vue.prototype.axios = axios;
  16. /* eslint-disable no-new */
  17. Vue.use(ElementUI)
  18. new Vue({
  19. el: '#app',
  20. router,
  21. store,
  22. components: { App },
  23. template: '<App/>'
  24. })