From 49e1da77fb5a62dd8683a3c976fdbbb7aff2f279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sat, 22 Jun 2019 23:31:13 +0800 Subject: [PATCH] feat: back home add onClick --- src/pages/404.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/404.tsx b/src/pages/404.tsx index a8ee0ee7..80fe09c9 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Button } from 'antd'; +import router from 'umi/router'; // 这里应该使用 antd 的 404 result 组件, // 但是还没发布,先来个简单的。 @@ -17,7 +18,9 @@ const NoFoundPage: React.FC<{}> = () => (

404

Sorry, the page you visited does not exist.

- + ); -- GitLab