main.js 700 B

1234567891011121314151617181920212223242526272829303132333435
  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 moment from 'moment'
  27. Vue.prototype.$moment = moment
  28. // import cuCustom from '@/colorui/components/cu-custom.vue'
  29. // Vue.component('cu-custom',cuCustom)