main.js 677 B

1234567891011121314151617181920212223242526272829303132333435
  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. Vue.use(zpMixins);
  7. //-- 实现换肤 引入 Start
  8. import store from './src/store'
  9. import myMixin from './src/common/mixins.js';
  10. //--实现换肤 引入 End
  11. Vue.use(myMixin);
  12. Vue.config.productionTip = false;
  13. App.mpType = 'app';
  14. const app = new Vue({
  15. ...App,
  16. store,
  17. });
  18. app.$mount();
  19. // #endif
  20. // #ifdef VUE3
  21. import { createSSRApp } from 'vue';
  22. export function createApp() {
  23. const app = createSSRApp(App);
  24. app.mixin(zpMixins);
  25. return {
  26. app
  27. };
  28. }
  29. // #endif