<template>
  <transition name="fade">
    <router-view></router-view>
  </transition>
</template>

<script>


  export default {
    data() {
      return {
        query: {},
        version: '1.3.0'
      }
    },
    created() {
      this.versionReload()
    },
    methods: {
      versionReload(){
        let version = this.version;          //版本号（每次上线前需要更新下版本号）
        console.log('最新系统版本: ',version)
        console.log('当前系统版本: ',this.version)
        let versionLocal = localStorage.getItem('_version_');
        if(version!=versionLocal){
          localStorage.setItem('_version_',version);
          this.version=versionLocal;
          location.reload();
        }
      }
    }
  }

</script>
