main.js 584 B

1234567891011121314151617181920212223
  1. import Vue from 'vue'
  2. import App from './App'
  3. import * as http from './common/http'
  4. import config from './config.js'
  5. import * as utils from './common/utils'
  6. import store from './store'
  7. import storage from 'common/storage'
  8. import moment from 'moment'
  9. Vue.config.productionTip = false
  10. Vue.prototype.$config = config
  11. Vue.prototype.$utils=utils
  12. Vue.prototype.$http = http
  13. Vue.prototype.$store = store
  14. Vue.prototype.$storage = storage
  15. Vue.prototype.$moment = moment
  16. Vue.prototype.$bus = new Vue()
  17. App.mpType = 'app'
  18. const app = new Vue({
  19. ...App,
  20. })
  21. app.$mount()