main.js 407 B

123456789101112131415161718192021222324252627
  1. // #ifndef VUE3
  2. import Vue from 'vue'
  3. import App from './App'
  4. import share from './mixins/share.js'
  5. Vue.mixin(share)
  6. Vue.config.productionTip = false
  7. App.mpType = 'app'
  8. const app = new Vue({
  9. ...App
  10. })
  11. app.$mount()
  12. // #endif
  13. // #ifdef VUE3
  14. import { createSSRApp } from 'vue'
  15. import App from './App.vue'
  16. export function createApp() {
  17. const app = createSSRApp(App)
  18. return {
  19. app
  20. }
  21. }
  22. // #endif