5 changed files with 56 additions and 12 deletions
@ -1,7 +1,19 @@ |
|||
import React from 'react'; |
|||
import React, { Component } from 'react'; |
|||
import { injectIntl } from 'react-intl'; |
|||
import { Link } from 'dva/router'; |
|||
import Exception from 'components/Exception'; |
|||
|
|||
export default () => ( |
|||
<Exception type="403" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> |
|||
); |
|||
class Exception403 extends Component { |
|||
render() { |
|||
const { intl } = this.props; |
|||
return ( |
|||
<Exception |
|||
type="403" |
|||
desc={intl.formatMessage({ id: 'app.exception.description.403' }, {})} |
|||
style={{ minHeight: 500, height: '80%' }} |
|||
linkElement={Link} |
|||
/> |
|||
); |
|||
} |
|||
} |
|||
export default injectIntl(Exception403); |
|||
|
|||
@ -1,7 +1,19 @@ |
|||
import React from 'react'; |
|||
import React, { Component } from 'react'; |
|||
import { injectIntl } from 'react-intl'; |
|||
import { Link } from 'dva/router'; |
|||
import Exception from 'components/Exception'; |
|||
|
|||
export default () => ( |
|||
<Exception type="404" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> |
|||
); |
|||
class Exception404 extends Component { |
|||
render() { |
|||
const { intl } = this.props; |
|||
return ( |
|||
<Exception |
|||
type="404" |
|||
desc={intl.formatMessage({ id: 'app.exception.description.404' }, {})} |
|||
style={{ minHeight: 500, height: '80%' }} |
|||
linkElement={Link} |
|||
/> |
|||
); |
|||
} |
|||
} |
|||
export default injectIntl(Exception404); |
|||
|
|||
@ -1,7 +1,19 @@ |
|||
import React from 'react'; |
|||
import React, { Component } from 'react'; |
|||
import { injectIntl } from 'react-intl'; |
|||
import { Link } from 'dva/router'; |
|||
import Exception from 'components/Exception'; |
|||
|
|||
export default () => ( |
|||
<Exception type="500" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> |
|||
); |
|||
class Exception500 extends Component { |
|||
render() { |
|||
const { intl } = this.props; |
|||
return ( |
|||
<Exception |
|||
type="500" |
|||
desc={intl.formatMessage({ id: 'app.exception.description.500' }, {})} |
|||
style={{ minHeight: 500, height: '80%' }} |
|||
linkElement={Link} |
|||
/> |
|||
); |
|||
} |
|||
} |
|||
export default injectIntl(Exception500); |
|||
|
|||
Loading…
Reference in new issue