敢为人鲜小程序前端代码仓库
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.

44 lines
738 B

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