main.js 490 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue'
  2. import App from './App'
  3. import apis from './configs/http';
  4. import store from './store';
  5. import env from '@/configs/env';
  6. import mainStatistics from '@/pages/Charts/mainStatistics';
  7. Vue.config.productionTip = !!env.isProduction;
  8. App.mpType = 'app'
  9. Vue.prototype.$store = store;
  10. const app = new Vue({
  11. store,
  12. ...App,
  13. });
  14. app.$mount();
  15. Object.keys(apis).forEach(key => {
  16. Vue.prototype[`$${key}`] = apis[key];
  17. });
  18. Vue.component('mainStatistics', mainStatistics);