text: import Vue from 'vue'
  import App from './App.vue'
  import Storage from 'vue-ls'
  import router from './router/'
  import store from './store/'
  
  import { VueAxios } from "@/utils/request"
  
  import Antd from 'ant-design-vue'
  import Viser from 'viser-vue'
  import 'ant-design-vue/dist/antd.less';  // or 'ant-design-vue/dist/antd.less'
  
  import * as dayjs from 'dayjs' // 日期时间支持库
  
  import '@/permission' // permission control
  
  import { ACCESS_TOKEN, DEFAULT_THEME, SIDEBAR_TYPE } from "@/store/mutation-types"
  
  Vue.filter('dayjs', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
    return dayjs(dataStr).format(pattern)
  })
  
  const options = {
    namespace: 'ant__', // key prefix
    name: 'ls', // name variable Vue.[ls] or this.[$ls],
    storage: 'local', // storage name session, local, memory
  }
  
  Vue.config.productionTip = false
  
  Vue.use(Storage, options)
  Vue.use(Antd)
  Vue.use(VueAxios, router)
  Vue.use(Viser)
  
  new Vue({
    router,
    store,
    mounted () {
      store.commit('SET_SIDEBAR_TYPE', Vue.ls.get(SIDEBAR_TYPE, true))
      store.commit('TOGGLE_THEME', Vue.ls.get(DEFAULT_THEME, 'dark'))
      store.commit('SET_ACCESSTOKEN', Vue.ls.get(ACCESS_TOKEN))
  
    },
    render: h => h(App)
  }).$mount('#app')
  