main.js 586 B

12345678910111213141516171819202122232425262728293031
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from "./router";
  4. import store from './store'
  5. import Element from 'element-ui'
  6. import GlobalPlugin from './common/plugins'
  7. import '@/assets/style/index.scss'
  8. import "./router/permission"
  9. import has from '@/common/directive/permission/'
  10. import { hasPerm } from '@/common/utils/has-permission'
  11. Vue.config.productionTip = false
  12. Vue.directive('has', has)
  13. Vue.prototype.hasPerm = hasPerm
  14. Vue.use(Element, { size: 'medium' })
  15. Vue.use(GlobalPlugin)
  16. new Vue({
  17. router,
  18. store,
  19. render: h => h(App),
  20. }).$mount('#app')