浏览代码

Update 404.js (#2577)

Jing Ma 7 年之前
父节点
当前提交
184834b3b2
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/pages/404.js

+ 7 - 1
src/pages/404.js

@@ -1,7 +1,13 @@
 import React from 'react';
 import React from 'react';
 import Link from 'umi/link';
 import Link from 'umi/link';
+import { formatMessage } from "umi/locale";
 import Exception from '@/components/Exception';
 import Exception from '@/components/Exception';
 
 
 export default () => (
 export default () => (
-  <Exception type="404" style={{ minHeight: 500, height: '100%' }} linkElement={Link} />
+  <Exception
+    type="404"
+    linkElement={Link}
+    desc={formatMessage({id: 'app.exception.description.404'})}
+    backText={formatMessage({id: 'app.exception.back'})}
+  />
 );
 );