main.js 452 B

123456789101112131415161718192021222324252627
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. const app = new Vue({
  8. ...App
  9. })
  10. app.$mount()
  11. // #endif
  12. // #ifdef VUE3
  13. // 引入uview UI
  14. import uView from './uni_modules/vk-uview-ui'
  15. import { createSSRApp } from 'vue'
  16. export function createApp() {
  17. const app = createSSRApp(App)
  18. // 使用uView UI
  19. app.use(uView)
  20. return {
  21. app
  22. }
  23. }
  24. // #endif