<template>
    <div class="error-page">
        <div class="img" :style="`background-image: url(${svg500});`" />
        <div class="content">
            <h1>500</h1>
            <div class="desc">
                抱歉，服务器出错了
            </div>
            <div class="actions">
                <el-button type="primary" block @click="goToHome">
                    返回首页
                </el-button>
            </div>
        </div>
    </div>
</template>

<script setup>
import router from '~src/router/index'
import svg500 from '~src/assets/view/500.svg'

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

<style lang="scss" scoped>
@import "../../styles/error/style.scss";
</style>
