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

28 lines
658 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="500" />
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 {
height: 100%;
min-height: calc(100vh - 60px);
2022-02-25 14:08:17 +08:00
display: flex;
align-items: center;
justify-content: center;
}
</style>