<template>
  <div class="mod-home">
    <h3 style="font-size: 30px;margin-left: 20px">{{name}}</h3>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        name:this.$store.state.user.name+",欢迎使用！"
      }
    },
    methods: {
      languageRefresh(){
        let bool = localStorage.getItem('refresh')
        if (bool == '0'){
           this.$router.go(0);
           localStorage.setItem('refresh','1')
        }
      }
    },
    beforeMount() {
      this.languageRefresh()
    }
  }
</script>

<style>
  .mod-home {
    line-height: 1.5;
  }
</style>

