main.js 678 B

123456789101112131415161718192021222324252627
  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. import ws from './common/websocket'
  10. import scan from './common/scanChange'
  11. Vue.config.productionTip = false
  12. Vue.prototype.$config = config
  13. Vue.prototype.$utils=utils
  14. Vue.prototype.$http = http
  15. Vue.prototype.$store = store
  16. Vue.prototype.$storage = storage
  17. Vue.prototype.$moment = moment
  18. Vue.prototype.$ws=ws
  19. Vue.prototype.$scan=scan
  20. App.mpType = 'app'
  21. const app = new Vue({
  22. ...App
  23. })
  24. app.$mount()