main.js 477 B

1234567891011121314151617181920212223242526272829
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. Vue.config.productionTip = false;
  5. import uView from '@/uni_modules/uview-ui'
  6. Vue.use(uView)
  7. App.mpType = 'app'
  8. const app = new Vue({
  9. ...App
  10. })
  11. app.$mount()
  12. // #endif
  13. // #ifdef VUE3
  14. import {
  15. createSSRApp
  16. } from 'vue'
  17. import cuCustom from './colorui/components/cu-custom.vue'
  18. Vue.component('cu-custom', cuCustom)
  19. export function createApp() {
  20. const app = createSSRApp(App)
  21. return {
  22. app
  23. }
  24. }
  25. // #endif