1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 12:10:20 +08:00
Files
vue-naive-admin/src/views/error-page/404.vue

28 lines
644 B
Vue

<script setup>
import { useRouter } from 'vue-router'
const { replace } = useRouter()
</script>
<template>
<div class="page-404">
<n-result status="404" description="抱歉,您访问的页面不存在。">
<template #icon>
<img src="@/assets/imgs/404/404.png" width="500" />
</template>
<template #footer>
<n-button color="#002d6f" @click="replace('/')">返回首页</n-button>
</template>
</n-result>
</div>
</template>
<style lang="scss" scoped>
.page-404 {
height: 100%;
min-height: calc(100vh - 60px);
display: flex;
align-items: center;
justify-content: center;
}
</style>