main.js 921 B

1234567891011121314151617181920212223242526272829303132
  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. // WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
  10. import './mock'
  11. import bootstrap from './core/bootstrap'
  12. import './core/lazy_use'
  13. import './permission' // permission control
  14. import './utils/filter' // global filter
  15. import './components/global.less'
  16. import { Dialog } from '@/components'
  17. import { hasBtnPermission } from './utils/permissions' // button permission
  18. import { sysApplication } from './utils/applocation'
  19. Vue.use(VueAxios)
  20. Vue.use(Dialog)
  21. Vue.prototype.hasPerm = hasBtnPermission
  22. Vue.prototype.applocation = sysApplication
  23. Vue.config.productionTip = false
  24. new Vue({
  25. router,
  26. store,
  27. created: bootstrap,
  28. render: h => h(App)
  29. }).$mount('#app')