main.js 352 B

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