<template>
  <div class="result-err">
    <img src="~@/assets/svg/500.svg" alt="">
    <div>
      对不起，服务器错误。
    </div>
    <a-button type="primary" style="margin-top:30px" @click="toHome">
      返回首页
    </a-button>
  </div>
</template>

<script setup lang="ts">
import {useRoute} from 'vue-router'
import router from '@/router'

  function  toHome () {
      router.push({ path: '/' })
    }

</script>
