2020-12-31 11:47:52 +08:00
|
|
|
<template>
|
2021-03-15 12:44:58 +08:00
|
|
|
<div class="error">
|
|
|
|
<div class="error-flex">
|
|
|
|
<div class="left">
|
|
|
|
<div class="left-item">
|
|
|
|
<div class="left-item-animation left-item-num">404</div>
|
2021-04-01 11:13:38 +08:00
|
|
|
<div class="left-item-animation left-item-title">{{ $t('message.notFound.foundTitle') }}</div>
|
|
|
|
<div class="left-item-animation left-item-msg">{{ $t('message.notFound.foundMsg') }}</div>
|
2021-03-15 12:44:58 +08:00
|
|
|
<div class="left-item-animation left-item-btn">
|
2021-04-01 11:13:38 +08:00
|
|
|
<el-button type="primary" round @click="onGoHome">{{ $t('message.notFound.foundBtn') }}</el-button>
|
2021-03-15 12:44:58 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/error/404.png" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-31 11:47:52 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-03-15 12:44:58 +08:00
|
|
|
import { useRouter } from 'vue-router';
|
2020-12-31 11:47:52 +08:00
|
|
|
export default {
|
2021-03-15 12:44:58 +08:00
|
|
|
name: '404',
|
|
|
|
setup() {
|
|
|
|
const router = useRouter();
|
|
|
|
const onGoHome = () => {
|
|
|
|
router.push('/');
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
onGoHome,
|
|
|
|
};
|
|
|
|
},
|
2020-12-31 11:47:52 +08:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.error {
|
2021-03-15 12:44:58 +08:00
|
|
|
height: 100%;
|
|
|
|
background-color: white;
|
|
|
|
display: flex;
|
|
|
|
.error-flex {
|
|
|
|
margin: auto;
|
|
|
|
display: flex;
|
|
|
|
height: 350px;
|
|
|
|
width: 900px;
|
|
|
|
.left {
|
|
|
|
flex: 1;
|
|
|
|
height: 100%;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
.left-item {
|
|
|
|
.left-item-animation {
|
|
|
|
opacity: 0;
|
|
|
|
animation-name: error-num;
|
|
|
|
animation-duration: 0.5s;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
}
|
|
|
|
.left-item-num {
|
|
|
|
color: #d6e0f6;
|
|
|
|
font-size: 55px;
|
|
|
|
}
|
|
|
|
.left-item-title {
|
|
|
|
font-size: 20px;
|
|
|
|
color: #333333;
|
|
|
|
margin: 15px 0 5px 0;
|
|
|
|
animation-delay: 0.1s;
|
|
|
|
}
|
|
|
|
.left-item-msg {
|
|
|
|
color: #c0bebe;
|
|
|
|
font-size: 12px;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
animation-delay: 0.2s;
|
|
|
|
}
|
|
|
|
.left-item-btn {
|
|
|
|
animation-delay: 0.2s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.right {
|
|
|
|
flex: 1;
|
|
|
|
opacity: 0;
|
|
|
|
animation-name: error-img;
|
|
|
|
animation-duration: 2s;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-31 11:47:52 +08:00
|
|
|
}
|
2021-03-15 12:44:58 +08:00
|
|
|
</style>
|