main.js 793 B

12345678910111213141516171819202122232425262728293031323334353637
  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. App.mpType = 'app'
  19. const app = new Vue({
  20. ...App
  21. })
  22. app.$mount()
  23. // #endif
  24. // #ifdef VUE3
  25. import { createSSRApp } from 'vue'
  26. import App from './App.vue'
  27. export function createApp() {
  28. const app = createSSRApp(App)
  29. return {
  30. app
  31. }
  32. }
  33. // #endif