<script setup lang="ts">
import { NResult, NButton } from 'naive-ui';
import { useRouter } from 'vue-router';

const router = useRouter();

const goHome = () => {
  router.push('/');
};
</script>

<template>
  <NResult status="404" title="404 页面不存在" style="margin-top: 50px">
    <template #footer>
      <NButton @click="goHome">返回</NButton>
    </template>
  </NResult>
</template>

<style scoped lang="scss"></style>
