index.vue 415 B

12345678910111213141516171819
  1. <template>
  2. <div>
  3. <el-empty description="未获取到用户数据" image="/static/warning.png">
  4. <el-button type="primary" @click="toLogin">重新登录</el-button>
  5. </el-empty>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name:'UnusualState',
  11. props:['message','path'],
  12. methods:{
  13. toLogin(){
  14. this.$router.push('/login' + (this.path ? `?path=${this.path}` : ''))
  15. }
  16. }
  17. }
  18. </script>