main.js 416 B

123456789101112131415161718192021222324
  1. import App from './App'
  2. import uView from './uni_modules/vk-uview-ui';
  3. // #ifndef VUE3
  4. import Vue from 'vue'
  5. import './uni.promisify.adaptor'
  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. export function createApp() {
  16. const app = createSSRApp(App)
  17. app.use(uView)
  18. return {
  19. app
  20. }
  21. }
  22. // #endif