main.js 413 B

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