@@ -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
@@ -3,7 +3,8 @@
.exception {
display: flex;
align-items: center;
- height: 100%;
+ height: 80%;
+ min-height: 500px;
.imgBlock {
flex: 0 0 62.5%;
@@ -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} />
);
@@ -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' })}
/>
@@ -7,7 +7,6 @@ const Exception403 = () => (
@@ -7,7 +7,6 @@ const Exception404 = () => (
type="404"
desc={formatMessage({ id: 'app.exception.description.404' }, {})}
@@ -7,7 +7,6 @@ const Exception500 = () => (
type="500"
desc={formatMessage({ id: 'app.exception.description.500' }, {})}