2022-11-05 21:45:48 +08:00

46 lines
978 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="go-error">
<div class="text-center">
<img src="~@/assets/images/exception/500.svg" alt="" />
</div>
<div class="text-center">
<h1 class="text-base text-gray-500">抱歉服务器出错了建议您重新登录呢</h1>
</div>
<n-button type="primary" secondary @click="goLogin">重新登录</n-button>
</div>
</template>
<script lang="ts" setup>
import { PageEnum } from '@/enums/pageEnum'
import { routerTurnByName } from '@/utils'
function goLogin() {
routerTurnByName(PageEnum.BASE_LOGIN_NAME)
}
</script>
<style lang="scss" scoped>
@include go(error) {
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
width: 100vw;
height: 100vh;
overflow: hidden;
padding: 100px 0;
@include background-image('background-image');
.text-center {
h1 {
color: #666;
padding: 20px 0;
}
}
img {
width: 350px;
margin: 0 auto;
}
}
</style>