49 lines
1.1 KiB
Vue
49 lines
1.1 KiB
Vue
<template >
|
||
<el-row class="not-found-container">
|
||
<el-col class="img" :span="12">
|
||
|
||
</el-col>
|
||
<el-col class="message-container" :span="12">
|
||
<div class="title">404</div>
|
||
<div class="message">很抱歉,您要访问的页面地址有误,或者该页面不存在。</div>
|
||
<div class="operate"><el-button type="primary" @click="router.push('/')">返回首页</el-button></div>
|
||
</el-col>
|
||
</el-row>
|
||
</template>
|
||
<script setup lang="ts">
|
||
import { useRouter } from 'vue-router';
|
||
const router = useRouter()
|
||
|
||
</script>
|
||
<style lang="scss" scoped>
|
||
.not-found-container {
|
||
height: 100vh;
|
||
width: 100vw;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
|
||
.img {
|
||
background-image: url('@/assets/404.png');
|
||
background-size: 100% 100%;
|
||
width: 50%;
|
||
height: 100%;
|
||
}
|
||
|
||
.message-container {
|
||
color: var(--app-base-text-color);
|
||
|
||
.title {
|
||
font-size: 50px;
|
||
font-weight: 500;
|
||
|
||
}
|
||
|
||
.message {
|
||
font-size: 20px;
|
||
margin: 50px 0 20px 0;
|
||
}
|
||
}
|
||
|
||
}
|
||
</style> |