main.js 540 B

12345678910111213141516171819202122232425262728
  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.serverurl="http://127.0.0.1:8090";
  10. Vue.prototype.$store = store;
  11. const app = new Vue({
  12. store,
  13. ...App,
  14. });
  15. app.$mount();
  16. Object.keys(apis).forEach(key => {
  17. Vue.prototype[`$${key}`] = apis[key];
  18. });
  19. Vue.component('mainStatistics', mainStatistics);