main.js 342 B

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