微信

123456789101112131415161718192021222324252627
  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 Vuex from 'vuex'
  6. import './style/main.css'
  7. import router from './router'
  8. import Ajax from './util/ajax'
  9. import api from './util/api'
  10. import toolClass from './util/util'
  11. import store from './store'
  12. import Vant from 'vant'
  13. import 'vant/lib/vant-css/index.css'
  14. Vue.use(Vant)
  15. Vue.use(Vuex)
  16. Vue.config.productionTip = false
  17. Vue.prototype.$api = api
  18. Vue.prototype.$ajax = Ajax
  19. Vue.prototype.toolClass = toolClass
  20. /* eslint-disable no-new */
  21. new Vue({
  22. el: '#app',
  23. router,
  24. store,
  25. components: { App },
  26. template: '<App/>'
  27. })