<template>
    <div class="app-error-view">
        <div class="app-error-container">
            <img src="/assets/img/500.png" />
            <div class="error-text">
                <div class="error-text1">抱歉，服务器出错了！</div>
                <div class="error-text2">服务器出错了，请返回 <a on-click={this.gotoIndexView}>首页</a> 继续浏览</div>
            </div>
        </div>
    </div>
</template>

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator';

@Component({})
export default class Error404 extends Vue {

    /**
     * 跳转首页
     *
     * @memberof Error404
     */
    public gotoIndexView() {
        this.$router.push('/'); 
    }
}
</script>

<style lang='less'>
@import './500.less';
</style>