59 lines
1.3 KiB
Vue
59 lines
1.3 KiB
Vue
<template>
|
|
<div class="error-page-container">
|
|
<div class="error-page">
|
|
<i class="el-icon-warning"/>
|
|
<h1 class="error-title">{{ $t('errLog.error404') }}</h1>
|
|
<h2 class="error-title">{{ $t('errLog.pageNotFound') }}</h2>
|
|
<h2 class="error-title">{{ $t('errLog.correctUrl') }}</h2>
|
|
<div class="buttons-group">
|
|
<el-button @click="back">{{ $t('errLog.back') }}</el-button>
|
|
<el-button type="primary" @click="goToHomePage">{{ $t('errLog.homePage') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: 'Page404',
|
|
methods: {
|
|
back() {
|
|
if (this.$route.query.noGoBack) {
|
|
this.$router.push({ path: '/login' })
|
|
} else {
|
|
this.$router.go(-1)
|
|
}
|
|
},
|
|
goToHomePage() {
|
|
this.$router.push({ path: '/' })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
.error-page-container {
|
|
min-height: 100%;
|
|
width: 100%;
|
|
background-color: #2d3a4b;
|
|
overflow: hidden;
|
|
.buttons-group {
|
|
margin-top: 4em;
|
|
}
|
|
.el-icon-warning {
|
|
font-size: 4.2em;
|
|
color: #eee;
|
|
margin: 0 auto;
|
|
}
|
|
.error-page {
|
|
width: 45rem;
|
|
max-width: 100%;
|
|
margin: 16rem auto;
|
|
text-align: center;
|
|
}
|
|
.error-title {
|
|
color: #eee;
|
|
}
|
|
}
|
|
</style>
|