main.js 384 B

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