main.js 820 B

123456789101112131415161718192021222324252627282930313233
  1. // with polyfills
  2. import 'core-js/stable'
  3. import 'regenerator-runtime/runtime'
  4. import Vue from 'vue'
  5. import App from './App.vue'
  6. import router from './router'
  7. import store from './store/'
  8. import { VueAxios } from './utils/request'
  9. import { PageHeaderWrapper } from '@ant-design-vue/pro-layout'
  10. // mock
  11. // WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
  12. import './mock'
  13. import bootstrap from './core/bootstrap'
  14. import './core/lazy_use'
  15. import './permission' // permission control
  16. import './utils/filter' // global filter
  17. import './global.less'
  18. Vue.config.productionTip = false
  19. // mount axios to `Vue.$http` and `this.$http`
  20. Vue.use(VueAxios)
  21. Vue.component('page-header-wrapper', PageHeaderWrapper)
  22. new Vue({
  23. router,
  24. store,
  25. created: bootstrap,
  26. render: h => h(App)
  27. }).$mount('#app')