<template>
  <div class="th-error-500">
    <div class="th-error-500-body-con">
      <el-card class="box-card">
        <div class="th-error-500-body-con-title">
          5
          <span class="th-error-500-0-span">
            <i class="el-icon-th-debug" />
          </span>
          <span class="th-error-500-0-span">
            <i class="el-icon-th-debug" />
          </span>
        </div>
        <p class="th-error-500-body-con-message">Oops! the server is wrong</p>
        <div class="th-error-500-btn-con">
          <el-button size="large" style="width: 200px;" type="text" @click="goHome">返回首页</el-button>
          <el-button size="large" style="width: 200px;margin-left: 40px;" type="primary" @click="backPage">返回上一页</el-button>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ThError500',
  methods: {
    backPage() {
      this.$router.go(-1)
    },
    goHome() {
      this.$router.push({
        path: '/'
      })
    }
  }
}
</script>
