抖音平台小程序

main.js 767B

1234567891011121314151617181920212223242526272829
  1. import App from './App'
  2. import Vue from 'vue'
  3. import store from './store'
  4. import uView from 'uview-ui'
  5. import { req, rootDocment, get, post, postJSON } from './config/util'
  6. import { api } from './config/api'
  7. import compareVersion from './utils/compareVersion'
  8. import { NumberHandle, getDay, copyEvent } from './utils/tools'
  9. Vue.use(uView)
  10. Vue.config.productionTip = false
  11. Vue.prototype.$api = api
  12. Vue.prototype.$rootDocment = rootDocment
  13. Vue.prototype.$req = req
  14. Vue.prototype.$get = get
  15. Vue.prototype.$post = post
  16. Vue.prototype.$postJSON = postJSON
  17. Vue.prototype.$compareVersion = compareVersion
  18. Vue.prototype.$NumberHandle = NumberHandle
  19. Vue.prototype.$getDay = getDay
  20. Vue.prototype.$copyEvent = copyEvent
  21. const app = new Vue({
  22. store,
  23. ...App
  24. })
  25. app.$mount()