Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
49e1da77
Commit
49e1da77
authored
Jun 22, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: back home add onClick
parent
243cc7e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/pages/404.tsx
src/pages/404.tsx
+4
-1
No files found.
src/pages/404.tsx
View file @
49e1da77
import
React
from
'
react
'
;
import
{
Button
}
from
'
antd
'
;
import
router
from
'
umi/router
'
;
// 这里应该使用 antd 的 404 result 组件,
// 但是还没发布,先来个简单的。
...
...
@@ -17,7 +18,9 @@ const NoFoundPage: React.FC<{}> = () => (
<
br
/>
<
h1
>
404
</
h1
>
<
p
>
Sorry, the page you visited does not exist.
</
p
>
<
Button
type
=
"primary"
>
Back Home
</
Button
>
<
Button
type
=
"primary"
onClick
=
{
()
=>
router
.
push
(
'
/
'
)
}
>
Back Home
</
Button
>
</
div
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment