<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
  export default{
    name: 'App',
    created() {
      // this.getVersions();
    },
    methods:{
        getVersions() {
          let versions=this.$getCache('versions');
          this.$axiosUser('get', '/api/pro/version').then(res => {
                let {set, version}=res.data.data;
                if(!set){
                  return false
                }
                if(!versions){
                  this.$setCache('versions',version);
                  return false
                }
                if(versions!=version){
                  this.$store.dispatch('LogOut')
                }
          })
        },
    }
  }
</script>
<style>
  /* 解决element-ui的table表格控件表头与内容列不对齐问题 */
  .el-table th.gutter{
    display: table-cell!important;
  }
  body .el-table th.gutter{
    display: table-cell!important;
  }
  body .el-table colgroup.gutter{
    display: table-cell!important;
  }
  .el-image-viewer__wrapper{
    z-index: 9999 !important;
  }
  .itemClass .el-cascader-menu .el-cascader-menu__wrap .el-scrollbar__view li.el-cascader-node {
    height: auto;
    max-width: 500px;
  }
  .el-cascader-node__label{
    /* white-space: initial; */
    overflow: initial;
    text-overflow: initial;
  }
</style>
