main.js 381 B

1234567891011121314151617181920212223
  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. Vue.config.productionTip = !!env.isProduction;
  7. App.mpType = 'app'
  8. Vue.prototype.$store = store;
  9. const app = new Vue({
  10. store,
  11. ...App,
  12. });
  13. app.$mount();
  14. Object.keys(apis).forEach(key => {
  15. Vue.prototype[`$${key}`] = apis[key];
  16. });