建材商城系统20241014
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.

40 lines
641 B

4 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 configPopup from '@/components/config/configPopup.vue'
  12. import navbar from '@/components/base/navbar.vue'
  13. Vue.component('configPopup',configPopup)
  14. Vue.component('navbar',navbar)
  15. const app = new Vue({
  16. ...App,
  17. store,
  18. })
  19. app.$mount()
  20. // #endif
  21. // #ifdef VUE3
  22. import {
  23. createSSRApp
  24. } from 'vue'
  25. export function createApp() {
  26. const app = createSSRApp(App)
  27. return {
  28. app
  29. }
  30. }
  31. // #endif