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