main.js 577 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 'babel-polyfill'
  8. Vue.config.productionTip = false
  9. Vue.prototype.$bus = new Vue()
  10. Vue.prototype.$cdn = 'https://4dscene.4dage.com/cgaii/PC'
  11. axios.defaults.baseURL = 'https://www.cgaii.com'
  12. Vue.prototype.$http = axios
  13. /* eslint-disable no-new */
  14. new Vue({
  15. el: '#app',
  16. router,
  17. components: { App },
  18. template: '<App/>'
  19. })