main.js 488 B

12345678910111213141516171819202122232425262728
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. Vue.config.productionTip = false
  5. import uView from '@/uni_modules/uview-ui'
  6. import request from '@/util/request.js'
  7. Vue.prototype.$request = request
  8. import store from './store'
  9. Vue.prototype.$store = store
  10. App.mpType = 'app'
  11. const app = new Vue({
  12. ...App
  13. })
  14. app.$mount()
  15. // #endif
  16. // #ifdef VUE3
  17. import {
  18. createSSRApp
  19. } from 'vue'
  20. export function createApp() {
  21. const app = createSSRApp(App)
  22. return {
  23. app
  24. }
  25. }
  26. // #endif