Files
lingji-work-fe/src/layouts/NotFound.vue

30 lines
617 B
Vue
Raw Normal View History

2025-06-16 14:42:26 +08:00
<script setup lang="ts">
2025-09-03 11:15:37 +08:00
import { Button } from 'ant-design-vue';
import { useRouter } from 'vue-router';
2025-06-16 14:42:26 +08:00
const router = useRouter();
const back = () => {
router.replace('/');
};
</script>
<template>
<div class="content">
<a-result class="result" status="404" subtitle="页面跑路了" />
2025-09-03 11:15:37 +08:00
<div class="operation-row flex justify-center">
<Button key="back" type="primary" @click="back">返回</Button>
2025-06-16 14:42:26 +08:00
</div>
</div>
</template>
<style scoped lang="scss">
2025-06-16 14:42:26 +08:00
.content {
position: absolute;
top: 50%;
left: 50%;
margin-left: -95px;
margin-top: -121px;
text-align: center;
}
</style>