<template>
  <el-result icon="warning" title="404提示" sub-title="你找的页面走丢了~">
    <template #extra>
      <el-button type="primary" @click="toNext">返回首页</el-button>
    </template>
  </el-result>
</template>
<script lang="ts" setup>
import { useRouter } from "vue-router";
const router = useRouter();
const toNext = (): void => {
  router.replace("/Home");
};

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