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

32 lines
696 B
Vue
Raw Normal View History

2025-06-16 14:42:26 +08:00
<script setup lang="ts">
2025-09-05 16:41:50 +08:00
import { Button, Result } from 'ant-design-vue';
2025-09-03 11:15:37 +08:00
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">
2025-09-05 16:41:50 +08:00
<Result class="result" status="404" sub-title="页面跑路了" />
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%;
2025-09-05 16:41:50 +08:00
transform: translate(-50%, -50%);
padding: 32px 32px 24px;
// margin-left: -95px;
// margin-top: -121px;
// text-align: center;
2025-06-16 14:42:26 +08:00
}
</style>