main.js 641 B

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