k5web/src/views/not-found/index.vue

31 lines
700 B
Vue
Raw Normal View History

2024-01-24 13:40:15 +00:00
<template>
<div class="content">
2024-01-27 07:45:48 +00:00
<a-result class="result" status="404" :subtitle="'找不到网页'"> </a-result>
2024-01-24 13:40:15 +00:00
<div class="operation-row">
2024-01-27 07:45:48 +00:00
<a-button key="back" type="primary" @click="back"> 返回 </a-button>
2024-01-24 13:40:15 +00:00
</div>
</div>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const back = () => {
// warning Go to the node that has the permission
router.push({ name: 'Workplace' });
};
</script>
<style scoped lang="less">
.content {
// padding-top: 100px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -95px;
margin-top: -121px;
text-align: center;
}
</style>