main.js 840 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // #ifndef VUE3
  2. import Vue from 'vue'
  3. import App from './App'
  4. Vue.config.productionTip = false
  5. import request from '@/util/request.js'
  6. import helper from '@/common/helper.js'
  7. import WXBizDataCrypt from '@/util/WXBizDataCrypt.js'
  8. import uView from '@/uni_modules/uview-ui'
  9. import store from './store'
  10. import share from '@/js_sdk/share.js'
  11. Vue.mixin(share)
  12. Vue.use(uView)
  13. import {parseTime} from '@/util/util'
  14. Vue.prototype.$request = request
  15. Vue.prototype.$helper = helper
  16. Vue.prototype.$store = store
  17. Vue.prototype.parseTime = parseTime
  18. Vue.prototype.$WXBizDataCrypt = WXBizDataCrypt
  19. App.mpType = 'app'
  20. const app = new Vue({
  21. ...App
  22. })
  23. app.$mount()
  24. // #endif
  25. // #ifdef VUE3
  26. import { createSSRApp } from 'vue'
  27. import App from './App.vue'
  28. export function createApp() {
  29. const app = createSSRApp(App)
  30. return {
  31. app
  32. }
  33. }
  34. // #endif