main.js 653 B

12345678910111213141516171819202122232425262728293031
  1. import App from './App';
  2. // 全局mixins,用于实现setData等功能,请勿删除!';
  3. import zpMixins from '@/uni_modules/zp-mixins/index.js';
  4. // #ifndef VUE3
  5. import Vue from 'vue';
  6. import share from './utils/share';
  7. Vue.mixin(share)
  8. Vue.use(zpMixins);
  9. import MyTabBar from './components/MyTabbar.vue'
  10. Vue.component("MyTabBar",MyTabBar)
  11. Vue.config.productionTip = false;
  12. App.mpType = 'app';
  13. const app = new Vue({
  14. ...App,share
  15. });
  16. app.$mount();
  17. // #endif
  18. // #ifdef VUE3
  19. import { createSSRApp } from 'vue';
  20. export function createApp() {
  21. const app = createSSRApp(App);
  22. app.mixin(zpMixins);
  23. return {
  24. app
  25. };
  26. }
  27. // #endif