main.js 514 B

12345678910111213141516171819202122
  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 Axios from 'axios'
  7. import store from './store'
  8. Vue.prototype.$ajax = Axios;
  9. Vue.config.productionTip = false
  10. // 注入url配置
  11. Vue.prototype.$url = process.env.BASE_URL
  12. /* eslint-disable no-new */
  13. new Vue({
  14. el: '#app',
  15. router,
  16. store,
  17. components: { App },
  18. template: '<App/>'
  19. })