main.js 512 B

12345678910111213141516171819202122232425262728
  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. Vue.config.productionTip = false;
  8. App.mpType = 'app';
  9. const app = new Vue({
  10. ...App
  11. });
  12. app.$mount();
  13. // #endif
  14. // #ifdef VUE3
  15. import { createSSRApp } from 'vue';
  16. export function createApp() {
  17. const app = createSSRApp(App);
  18. app.mixin(zpMixins);
  19. return {
  20. app
  21. };
  22. }
  23. // #endif