38 lines
665 B
Vue
38 lines
665 B
Vue
<script setup lang="ts">
|
||
import { useRouter } from 'vue-router'
|
||
|
||
const router = useRouter()
|
||
</script>
|
||
|
||
<template>
|
||
<div class="not-found">
|
||
<div class="code">404</div>
|
||
<p class="msg">抱歉,您访问的页面不存在</p>
|
||
<van-button type="primary" round @click="router.replace('/messages')">
|
||
返回消息页
|
||
</van-button>
|
||
</div>
|
||
</template>
|
||
|
||
<style scoped>
|
||
.not-found {
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: #f7f8fa;
|
||
}
|
||
|
||
.code {
|
||
font-size: 96px;
|
||
font-weight: bold;
|
||
color: #1989fa;
|
||
}
|
||
|
||
.msg {
|
||
margin: 16px 0 32px;
|
||
color: #969799;
|
||
}
|
||
</style>
|