import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css
import _ from 'lodash'
import * as echarts from 'echarts'
import elTableInfiniteScroll from 'el-table-infinite-scroll'
import xss from 'xss'

import App from './App'
import store from './store'
import router from './router'

// import '@/permission'
import '@/getMenu'
import '@/config/checkPermission' //按钮权限 全局自定义指令v-is

import { message } from '@/utils/message'

Vue.use(ElementUI)
Vue.prototype._ = _
Vue.prototype.$echarts = echarts
Vue.use(elTableInfiniteScroll)
Vue.use(xss)

Vue.prototype.$message = message

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
