<template>
  <div class="container">
    <div v-if="error.statusCode === 404" class="page" @click="toUrl('home')">
      <img src="~/assets/images/index/404.png">
    </div>
    <div v-else class="page" @click="toUrl('home')">
      <img src="~/assets/images/index/500.png">
    </div>
  </div>
</template>

<script>
  export default {
    props: ['error'],
    layout: 'login',
    methods: {
      toUrl(url, params) {
        this.$router.push(this.fun.getUrl(url, params));
      },
    }
  }
</script>

<style scoped>
  .page img{width: 80%;padding-top: 60px; display: block; margin:0 auto}
</style>
