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

const router = useRouter();

const routeToRoot = () => {
  router.push({ path: '/' });
};
</script>

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

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