500.vue 830 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<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">{{$t('components.500.errorText1')}}</div>
                <div class="error-text2">{{$t('components.500.errorText2')}} <a @click="gotoIndexView">{{$t('components.500.indexPage')}}</a> {{$t('components.500.continue')}}</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>