Commit 5b24b0e3 authored by afc163's avatar afc163

Move style to Exception css

parent 83df4267
...@@ -5,7 +5,7 @@ import CheckPermissions from './CheckPermissions'; ...@@ -5,7 +5,7 @@ import CheckPermissions from './CheckPermissions';
* 默认不能访问任何页面 * 默认不能访问任何页面
* default is "NULL" * 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 // Determine whether the incoming component has been instantiated
// AuthorizedRoute is already instantiated // AuthorizedRoute is already instantiated
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
.exception { .exception {
display: flex; display: flex;
align-items: center; align-items: center;
height: 100%; height: 80%;
min-height: 500px;
.imgBlock { .imgBlock {
flex: 0 0 62.5%; flex: 0 0 62.5%;
......
...@@ -3,5 +3,5 @@ import Link from 'umi/link'; ...@@ -3,5 +3,5 @@ import Link from 'umi/link';
import Exception from '@/components/Exception'; import Exception from '@/components/Exception';
export default () => ( export default () => (
<Exception type="404" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> <Exception type="404" linkElement={Link} />
); );
...@@ -22,7 +22,6 @@ export default ({ children, route, location }) => { ...@@ -22,7 +22,6 @@ export default ({ children, route, location }) => {
<Exception <Exception
type="403" type="403"
desc={formatMessage({ id: 'app.exception.description.403' }, {})} desc={formatMessage({ id: 'app.exception.description.403' }, {})}
style={{ minHeight: 500, height: '80%' }}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -7,7 +7,6 @@ const Exception403 = () => ( ...@@ -7,7 +7,6 @@ const Exception403 = () => (
<Exception <Exception
type="403" type="403"
desc={formatMessage({ id: 'app.exception.description.403' }, {})} desc={formatMessage({ id: 'app.exception.description.403' }, {})}
style={{ minHeight: 500, height: '80%' }}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -7,7 +7,6 @@ const Exception404 = () => ( ...@@ -7,7 +7,6 @@ const Exception404 = () => (
<Exception <Exception
type="404" type="404"
desc={formatMessage({ id: 'app.exception.description.404' }, {})} desc={formatMessage({ id: 'app.exception.description.404' }, {})}
style={{ minHeight: 500, height: '80%' }}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -7,7 +7,6 @@ const Exception500 = () => ( ...@@ -7,7 +7,6 @@ const Exception500 = () => (
<Exception <Exception
type="500" type="500"
desc={formatMessage({ id: 'app.exception.description.500' }, {})} desc={formatMessage({ id: 'app.exception.description.500' }, {})}
style={{ minHeight: 500, height: '80%' }}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment