main.js 664 B

123456789101112131415161718192021222324252627282930313233
  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. Vue.use(uView)
  10. Vue.prototype.$request = request
  11. Vue.prototype.$helper = helper
  12. import store from './store'
  13. Vue.prototype.$store = store
  14. App.mpType = 'app'
  15. const app = new Vue({
  16. ...App
  17. })
  18. app.$mount()
  19. // #endif
  20. // #ifdef VUE3
  21. import { createSSRApp } from 'vue'
  22. import App from './App.vue'
  23. export function createApp() {
  24. const app = createSSRApp(App)
  25. return {
  26. app
  27. }
  28. }
  29. // #endif