瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1021 B

11 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. import store from '@/store/store'
  8. import './config'
  9. import './utils/index.js'
  10. // 导入并挂载全局的分享方法
  11. import share from '@/mixins/share.js'
  12. Vue.mixin(share)
  13. //组件注册
  14. import configPopup from '@/components/config/configPopup.vue'
  15. import navbar from '@/components/base/navbar.vue'
  16. import tabbar from '@/components/base/tabbar.vue'
  17. import callPhone from '@/components/user/callPhone.vue'
  18. import addressSpot from '@/components/base/addressSpot.vue'
  19. Vue.component('configPopup',configPopup)
  20. Vue.component('navbar', navbar)
  21. Vue.component('tabbar', tabbar)
  22. Vue.component('callPhone', callPhone)
  23. Vue.component('addressSpot', addressSpot)
  24. const app = new Vue({
  25. ...App,
  26. store,
  27. })
  28. app.$mount()
  29. // #endif
  30. // #ifdef VUE3
  31. import {
  32. createSSRApp
  33. } from 'vue'
  34. export function createApp() {
  35. const app = createSSRApp(App)
  36. return {
  37. app
  38. }
  39. }
  40. // #endif