main.js 610 B

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