main.js 415 B

1234567891011121314151617181920212223242526272829
  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.config.productionTip = false
  7. Vue.use(uView)
  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