main.js 835 B

12345678910111213141516171819202122232425262728293031323334
  1. import App from './App'
  2. import mixin from './common/mixin'
  3. import store from './store'
  4. import tools from './common/tools'
  5. import request from './common/request'
  6. import Vue from 'vue'
  7. import popup from './components/mix-popup/mix-popup.vue';
  8. import empty from './components/empty.vue';
  9. import submitBtn from './components/submit-btn.vue';
  10. import singleList from './components/single-list.vue';
  11. import safeArea from './components/safe-area.vue';
  12. Vue.component('safeArea', safeArea)
  13. Vue.component('popup',popup)
  14. Vue.component('empty',empty)
  15. Vue.component('submitBtn',submitBtn)
  16. Vue.component('singleList',singleList)
  17. Vue.config.productionTip = false
  18. App.mpType = 'app'
  19. Vue.prototype.$store = store;
  20. Vue.prototype.$tools = tools;
  21. Vue.prototype.$request = request;
  22. Vue.mixin(mixin);
  23. const app = new Vue({
  24. ...App
  25. })
  26. app.$mount()