西藏巴青项目

main.js 492B

12345678910111213141516171819202122232425262728
  1. import './uni.promisify.adaptor'
  2. import '@/utils/tabBar'
  3. import App from './App'
  4. // #ifndef VUE3
  5. import Vue from 'vue'
  6. Vue.config.productionTip = false
  7. App.mpType = 'app'
  8. const app = new Vue({
  9. ...App
  10. })
  11. app.$mount()
  12. // #endif
  13. // #ifdef VUE3
  14. import { createSSRApp } from 'vue'
  15. import uviewPlus from 'uview-plus'
  16. export function createApp() {
  17. const app = createSSRApp(App)
  18. const uview = uviewPlus && (uviewPlus.default || uviewPlus)
  19. app.use(uview)
  20. return {
  21. app
  22. }
  23. }
  24. // #endif