admin-fe/src/views/errorPage/404.vue

60 lines
1.3 KiB
Vue
Raw Normal View History

2017-04-18 07:09:13 +00:00
<template>
2020-06-13 22:05:27 +00:00
<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>
2017-04-20 08:06:11 +00:00
</div>
</div>
</div>
2017-04-18 07:09:13 +00:00
</template>
2017-06-14 10:02:12 +00:00
2017-04-20 08:06:11 +00:00
<script>
2017-07-06 09:56:17 +00:00
2017-08-22 07:43:34 +00:00
export default {
name: 'Page404',
2020-06-13 22:05:27 +00:00
methods: {
back() {
if (this.$route.query.noGoBack) {
this.$router.push({ path: '/login' })
} else {
this.$router.go(-1)
}
},
goToHomePage() {
this.$router.push({ path: '/' })
2017-04-20 08:06:11 +00:00
}
}
2017-08-22 07:43:34 +00:00
}
2017-04-20 08:06:11 +00:00
</script>
2017-06-14 10:02:12 +00:00
2017-04-20 08:06:11 +00:00
<style rel="stylesheet/scss" lang="scss" scoped>
2020-06-13 22:05:27 +00:00
.error-page-container {
min-height: 100%;
width: 100%;
background-color: #2d3a4b;
2017-04-20 08:06:11 +00:00
overflow: hidden;
2020-06-13 22:05:27 +00:00
.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;
2017-07-06 09:56:17 +00:00
text-align: center;
}
2020-06-13 22:05:27 +00:00
.error-title {
color: #eee;
2017-04-20 08:06:11 +00:00
}
}
</style>