main.js 372 B

12345678910111213141516171819202122
  1. import App from './App'
  2. import mf from 'utils/mf.js'
  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. Vue.prototype.$mf = mf
  12. // #endif
  13. // #ifdef VUE3
  14. import { createSSRApp } from 'vue'
  15. export function createApp() {
  16. const app = createSSRApp(App)
  17. return {
  18. app
  19. }
  20. }
  21. // #endif