main.js 379 B

1234567891011121314151617181920212223
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. Vue.config.productionTip = false
  5. App.mpType = 'app'
  6. const app = new Vue({
  7. ...App
  8. })
  9. import uView from '@/uni_modules/uview-ui'
  10. Vue.use(uView)
  11. app.$mount()
  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