Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
5b24b0e3
Commit
5b24b0e3
authored
Aug 31, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move style to Exception css
parent
83df4267
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
7 deletions
+4
-7
src/components/Authorized/Secured.js
src/components/Authorized/Secured.js
+1
-1
src/components/Exception/index.less
src/components/Exception/index.less
+2
-1
src/pages/404.js
src/pages/404.js
+1
-1
src/pages/Authorized.js
src/pages/Authorized.js
+0
-1
src/pages/Exception/403.js
src/pages/Exception/403.js
+0
-1
src/pages/Exception/404.js
src/pages/Exception/404.js
+0
-1
src/pages/Exception/500.js
src/pages/Exception/500.js
+0
-1
No files found.
src/components/Authorized/Secured.js
View file @
5b24b0e3
...
...
@@ -5,7 +5,7 @@ import CheckPermissions from './CheckPermissions';
* 默认不能访问任何页面
* default is "NULL"
*/
const
Exception403
=
()
=>
<
Exception
type
=
"
403
"
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
/>
;
const
Exception403
=
()
=>
<
Exception
type
=
"
403
"
/>
;
// Determine whether the incoming component has been instantiated
// AuthorizedRoute is already instantiated
...
...
src/components/Exception/index.less
View file @
5b24b0e3
...
...
@@ -3,7 +3,8 @@
.exception {
display: flex;
align-items: center;
height: 100%;
height: 80%;
min-height: 500px;
.imgBlock {
flex: 0 0 62.5%;
...
...
src/pages/404.js
View file @
5b24b0e3
...
...
@@ -3,5 +3,5 @@ import Link from 'umi/link';
import
Exception
from
'
@/components/Exception
'
;
export
default
()
=>
(
<
Exception
type
=
"
404
"
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
<
Exception
type
=
"
404
"
linkElement
=
{
Link
}
/
>
);
src/pages/Authorized.js
View file @
5b24b0e3
...
...
@@ -22,7 +22,6 @@ export default ({ children, route, location }) => {
<
Exception
type
=
"
403
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.403
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
...
...
src/pages/Exception/403.js
View file @
5b24b0e3
...
...
@@ -7,7 +7,6 @@ const Exception403 = () => (
<
Exception
type
=
"
403
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.403
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
...
...
src/pages/Exception/404.js
View file @
5b24b0e3
...
...
@@ -7,7 +7,6 @@ const Exception404 = () => (
<
Exception
type
=
"
404
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.404
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
...
...
src/pages/Exception/500.js
View file @
5b24b0e3
...
...
@@ -7,7 +7,6 @@ const Exception500 = () => (
<
Exception
type
=
"
500
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.500
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment