import Vue from 'vue'
import App from './App'
import i18n from './i18n'
import store from './store'
import router from './router'
import '@/vab'

import { parseTime, translateDataToTree } from '@/utils'
import dictApi from '@/api/system/dict'

Vue.prototype.parseTime = parseTime
Vue.prototype.translateDataToTree = translateDataToTree
Vue.prototype.getDicts = dictApi.getDictDataByType

Vue.config.productionTip = false
new Vue({
  el: '#app',
  i18n,
  store,
  router,
  render: (h) => h(App),
})
