404.tsx 667 Bytes
Newer Older
1
import { Button } from 'antd';
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
2
import React from 'react';
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
3
import router from 'umi/router';
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

// ่ฟ™้‡Œๅบ”่ฏฅไฝฟ็”จ antd ็š„ 404 result ็ป„ไปถ๏ผŒ
// ไฝ†ๆ˜ฏ่ฟ˜ๆฒกๅ‘ๅธƒ๏ผŒๅ…ˆๆฅไธช็ฎ€ๅ•็š„ใ€‚

const NoFoundPage: React.FC<{}> = () => (
  <div
    style={{
      height: '100vh',
      padding: 80,
      textAlign: 'center',
    }}
  >
    <img src="https://gw.alipayobjects.com/zos/antfincdn/wsE2Pw%243%26L/noFound.svg" alt="404" />
    <br />
    <br />
    <h1>404</h1>
    <p>Sorry, the page you visited does not exist.</p>
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
21
    <Button type="primary" onClick={() => router.push('/user/login')}>
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
22 23
      Back Home
    </Button>
24 25 26 27
  </div>
);

export default NoFoundPage;