Skip to content

Commit 1a5e2c7

Browse files
GraceWalkZQKC
authored andcommitted
fix: 错误页面优化
1 parent 941dd4f commit 1a5e2c7

File tree

9 files changed

+69
-4
lines changed

9 files changed

+69
-4
lines changed
21.1 KB
Loading
28.5 KB
Loading
34.9 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import pageNoLicense from '@src/assets/page-no-license.png';
3+
4+
export default () => {
5+
return (
6+
<div className="error-page">
7+
<img width={230} height={150} src={pageNoLicense} />
8+
<div className="title">license 限制</div>
9+
</div>
10+
);
11+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import page403 from '@src/assets/page403.png';
3+
4+
export default () => {
5+
return (
6+
<div className="error-page">
7+
<img width={230} height={150} src={page403} />
8+
<div className="title">抱歉,您没有权限访问该页面~</div>
9+
<a className="link" href="/">
10+
返回首页
11+
</a>
12+
</div>
13+
);
14+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
import page404 from '@src/assets/page404.png';
3+
4+
export default () => {
5+
return (
6+
<div className="error-page">
7+
<img width={230} height={150} src={page404} />
8+
<div className="title">很抱歉,页面走丢了~</div>
9+
<div className="desc">请检查页面地址是否正确或刷新页面</div>
10+
<a className="link" href="/">
11+
返回首页
12+
</a>
13+
</div>
14+
);
15+
};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.error-page {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: center;
5+
height: calc(100% - 48px);
6+
> img {
7+
margin-top: 165px;
8+
}
9+
.title {
10+
margin: 16px 0;
11+
font-family: @font-family-bold;
12+
font-size: 18px;
13+
color: #495057;
14+
line-height: 25px;
15+
}
16+
.desc {
17+
margin-bottom: 12px;
18+
font-size: 13px;
19+
color: #74788d;
20+
font-weight: 400;
21+
}
22+
.link {
23+
font-size: 15px;
24+
}
25+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import './index.less';
2+
export { default as Page403 } from './Page403';
3+
export { default as Page404 } from './Page404';
4+
export { default as NoLicense } from './NoLicense';

km-console/packages/layout-clusters-fe/src/pages/NoLicense/index.tsx

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)