| 12345678910111213141516171819202122232425262728293031 |
- import Vue from 'vue'
- import App from './App.vue'
- import router from "./router";
- import store from './store'
- import Element from 'element-ui'
- import GlobalPlugin from './common/plugins'
- import '@/assets/style/index.scss'
- import "./router/permission"
- import has from '@/common/directive/permission/'
- import { hasPerm } from '@/common/utils/has-permission'
- Vue.config.productionTip = false
- Vue.directive('has', has)
- Vue.prototype.hasPerm = hasPerm
- Vue.use(Element, { size: 'medium' })
- Vue.use(GlobalPlugin)
- new Vue({
- router,
- store,
- render: h => h(App),
- }).$mount('#app')
|