1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-05-01 06:39:01 +08:00
2022-05-07 23:01:30 +08:00

27 lines
624 B
Vue

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