main.js 627 B

1234567891011121314151617181920212223242526272829303132
  1. import App from './App'
  2. import cuCustom from './components/statusBar/cu-custom'
  3. Vue.component('cu-custom',cuCustom)
  4. import halfLogin from './components/login/halfScreen'
  5. Vue.component('half-login',halfLogin)
  6. // #ifndef VUE3
  7. import Vue from 'vue'
  8. import VueCompositionAPI from "@vue/composition-api";
  9. Vue.use(VueCompositionAPI)
  10. import './uni.promisify.adaptor'
  11. Vue.config.productionTip = false
  12. App.mpType = 'app'
  13. const app = new Vue({
  14. ...App
  15. })
  16. app.$mount()
  17. // #endif
  18. // #ifdef VUE3
  19. import { createSSRApp } from 'vue'
  20. export function createApp() {
  21. const app = createSSRApp(App)
  22. return {
  23. app
  24. }
  25. }
  26. // #endif