Files
wireguard-dashboard-admin/src/views/error-page/404.vue

32 lines
683 B
Vue
Raw Normal View History

2022-01-08 17:20:46 +08:00
<template>
2022-02-25 14:08:17 +08:00
<div class="page-404">
<n-result status="404" description="抱歉,您访问的页面不存在。">
<template #icon>
<img src="@/assets/images/404.png" width="300" />
2022-02-25 14:08:17 +08:00
</template>
<template #footer>
2022-04-05 11:33:35 +08:00
<n-button strong secondary type="primary" @click="replace('/')">返回首页</n-button>
2022-02-25 14:08:17 +08:00
</template>
</n-result>
</div>
2022-01-08 17:20:46 +08:00
</template>
2022-02-25 14:08:17 +08:00
<script setup>
import { useRouter } from 'vue-router'
const { replace } = useRouter()
</script>
2022-02-25 14:08:17 +08:00
<style lang="scss" scoped>
.page-404 {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 50px;
bottom: 50px;
left: 0;
right: 0;
2022-02-25 14:08:17 +08:00
}
</style>