mirror of https://github.com/halo-dev/halo
chore: upgrade antd. (halo-dev/console#105)
parent
fe2ed25541
commit
ecbda21ea2
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 62 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 54 KiB |
|
@ -832,51 +832,11 @@ body {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 150px;
|
margin-top: 150px;
|
||||||
|
|
||||||
.img {
|
|
||||||
display: inline-block;
|
|
||||||
padding-right: 52px;
|
|
||||||
zoom: 1;
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 360px;
|
|
||||||
max-width: 430px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
display: inline-block;
|
|
||||||
flex: auto;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
color: #434e59;
|
|
||||||
font-size: 72px;
|
|
||||||
font-weight: 600;
|
|
||||||
line-height: 72px;
|
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.desc {
|
|
||||||
color: rgba(0, 0, 0, 0.45);
|
|
||||||
font-size: 20px;
|
|
||||||
line-height: 28px;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile {
|
.mobile {
|
||||||
.exception {
|
.exception {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
|
||||||
.img {
|
|
||||||
padding-right: unset;
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 40%;
|
|
||||||
max-width: 80%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,8 @@ import {
|
||||||
ConfigProvider,
|
ConfigProvider,
|
||||||
Timeline,
|
Timeline,
|
||||||
Steps,
|
Steps,
|
||||||
Empty
|
Empty,
|
||||||
|
Result
|
||||||
} from 'ant-design-vue'
|
} from 'ant-design-vue'
|
||||||
|
|
||||||
Vue.use(Anchor)
|
Vue.use(Anchor)
|
||||||
|
@ -96,6 +97,7 @@ Vue.use(ConfigProvider)
|
||||||
Vue.use(Timeline)
|
Vue.use(Timeline)
|
||||||
Vue.use(Steps)
|
Vue.use(Steps)
|
||||||
Vue.use(Empty)
|
Vue.use(Empty)
|
||||||
|
Vue.use(Result)
|
||||||
|
|
||||||
Vue.prototype.$message = message
|
Vue.prototype.$message = message
|
||||||
Vue.prototype.$notification = notification
|
Vue.prototype.$notification = notification
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="exception">
|
<div class="exception">
|
||||||
<div class="img">
|
<a-result
|
||||||
<img :src="config[type].img" />
|
:status="type"
|
||||||
</div>
|
:title="type"
|
||||||
<div class="content">
|
:subTitle="config[type].desc"
|
||||||
<h1>{{ config[type].title }}</h1>
|
>
|
||||||
<div class="desc">{{ config[type].desc }}</div>
|
<template v-slot:extra>
|
||||||
<div class="action">
|
<a-button type="primary" @click="handleToHome">返回仪表盘</a-button>
|
||||||
<a-button
|
</template>
|
||||||
type="primary"
|
</a-result>
|
||||||
@click="handleToHome"
|
|
||||||
>返回首页</a-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
const types = {
|
const types = {
|
||||||
404: {
|
404: {
|
||||||
img: '/images/404.svg',
|
|
||||||
title: '404',
|
|
||||||
desc: '抱歉,你访问的页面不存在'
|
desc: '抱歉,你访问的页面不存在'
|
||||||
},
|
},
|
||||||
500: {
|
500: {
|
||||||
img: '/images/500.svg',
|
|
||||||
title: '500',
|
|
||||||
desc: '抱歉,服务器出错了'
|
desc: '抱歉,服务器出错了'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue