Commit 035df550 by Mikey Committed by GitHub

fix: 404 Component is missing (#592)

* fix: 404 Component is missing

* chore: update 404 page style

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
parent 0c31a9b3
...@@ -283,7 +283,9 @@ function App() { ...@@ -283,7 +283,9 @@ function App() {
</Suspense> </Suspense>
} }
/> />
<Route path='*' element={NotFound} /> <Route path='*' element={
<NotFound />
} />
</Routes> </Routes>
); );
} }
......
import React from 'react'; import React from 'react';
import { Segment, Header } from 'semantic-ui-react'; import { Message } from 'semantic-ui-react';
const NotFound = () => ( const NotFound = () => (
<> <>
<Header <Message negative>
block <Message.Header>页面不存在</Message.Header>
as="h4" <p>请检查你的浏览器地址是否正确</p>
content="404" </Message>
attached="top"
icon="info"
className="small-icon"
/>
<Segment attached="bottom">
未找到所请求的页面
</Segment>
</> </>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment