提交 297fd08d04cce59768c44de9265c3f67ff4c64c7

作者 愚道
1 个父辈 3f682937

improve exception

... ... @@ -3,7 +3,7 @@ import { formatMessage } from 'umi/locale';
3 3 import Link from 'umi/link';
4 4 import { Exception } from 'ant-design-pro';
5 5
6   -const Exception403 = () => (
  6 +const PAGE_NAME_UPPER_CAMEL_CASE = () => (
7 7 <Exception
8 8 type="403"
9 9 desc={formatMessage({ id: 'app.exception.description.403' })}
... ... @@ -12,4 +12,4 @@ const Exception403 = () => (
12 12 />
13 13 );
14 14
15   -export default Exception403;
  15 +export default PAGE_NAME_UPPER_CAMEL_CASE;
... ...
... ... @@ -3,7 +3,7 @@ import { formatMessage } from 'umi/locale';
3 3 import Link from 'umi/link';
4 4 import { Exception } from 'ant-design-pro';
5 5
6   -const Exception404 = () => (
  6 +const PAGE_NAME_UPPER_CAMEL_CASE = () => (
7 7 <Exception
8 8 type="404"
9 9 desc={formatMessage({ id: 'app.exception.description.404' })}
... ... @@ -12,4 +12,4 @@ const Exception404 = () => (
12 12 />
13 13 );
14 14
15   -export default Exception404;
  15 +export default PAGE_NAME_UPPER_CAMEL_CASE;
... ...
... ... @@ -3,7 +3,7 @@ import { formatMessage } from 'umi/locale';
3 3 import Link from 'umi/link';
4 4 import { Exception } from 'ant-design-pro';
5 5
6   -const Exception500 = () => (
  6 +const PAGE_NAME_UPPER_CAMEL_CASE = () => (
7 7 <Exception
8 8 type="500"
9 9 desc={formatMessage({ id: 'app.exception.description.500' })}
... ... @@ -12,4 +12,4 @@ const Exception500 = () => (
12 12 />
13 13 );
14 14
15   -export default Exception500;
  15 +export default PAGE_NAME_UPPER_CAMEL_CASE;
... ...
注册登录 后发表评论