<template>
  <div class="err-container">
    <img class="error-404" src="../../assets/components/error/404.png" alt="页面未找到" />
    <div class="tit">很抱歉，您访问的页面已经断开...</div>
    <div style="height: 20px; width: 100%;"></div>
    <el-button type="primary" @click="goIndex">返回首页</el-button>
    <el-button type="primary" @click="goPrev">返回上一页</el-button>
    <div style="height: 50px; width: 100%;"></div>
  </div>
</template>

<script>
export default {
  mounted () {
    // this.VueEvent.$emit('headerChange', '1-error') // 修改 头部导航
  },
  methods: {
    goIndex () {
      this.$router.push({ path: '/' })
    },
    goPrev () {
      this.$router.go(-1)
    }
  }
}
</script>


<style lang="scss" scoped>
.err-container {
  width: 100%;
  // height: 100%;
  text-align: center;
  overflow: hidden;
  .error-404 {
    display: block;
    width: 60%;
    max-width: 600px;
    margin: 10% auto;
  }
  .tit {
    font-size: 24px;
    color: #313131;
    text-align: center;
  }
}
</style>
