猫妈狗爸伴宠师小程序前端代码
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.

43 lines
866 B

2 weeks ago
2 weeks ago
4 months ago
4 months ago
2 weeks ago
4 months ago
2 weeks ago
4 months ago
  1. import uviewPlus from '@/uni_modules/uview-plus'
  2. import "@/static/styles/index.scss"
  3. import store from './store'
  4. // #ifndef VUE3
  5. import Vue from 'vue'
  6. import App from './App'
  7. import shareMixin from '@/utils/shareMixin.js'
  8. Vue.config.productionTip = false
  9. App.mpType = 'app'
  10. // 全局混入分享功能
  11. Vue.mixin(shareMixin)
  12. const app = new Vue({
  13. ...App
  14. })
  15. app.use(uviewPlus)
  16. app.$mount()
  17. // #endif
  18. // #ifdef VUE3
  19. import {
  20. createSSRApp
  21. } from 'vue'
  22. import App from './App.vue'
  23. import CustomerService from '@/components/CustomerService/index.vue'
  24. import shareMixin from '@/utils/shareMixin.js'
  25. export function createApp() {
  26. const app = createSSRApp(App)
  27. app.use(uviewPlus)
  28. app.use(store)
  29. // 全局注册客服按钮组件
  30. app.component('CustomerService', CustomerService)
  31. // 全局混入分享功能
  32. app.mixin(shareMixin)
  33. return {
  34. app
  35. }
  36. }
  37. // #endif