king
2025-05-23 24842b40de5cd60700bf69dfd38a0332f5431e36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React, {Component} from 'react'
import { withRouter } from 'react-router-dom'
 
import { Button } from 'antd'
import Lostsvg from '@/components/lostsvg'
import './index.scss'
 
class NotFound extends Component {
  tomain () {
    this.props.history.replace('/main')
  }
 
  render () {
    return (
      <main className="ant-pro-basicLayout-content ant-layout-content">
        <div className="ant-result">
          <div className="ant-result-icon ant-result-image">
            <Lostsvg />
          </div>
          <div className="ant-result-title">404</div>
          <div className="ant-result-subtitle">抱歉,您访问的页面不存在,请联系管理员。</div>
          <div className="ant-result-extra">
            <Button onClick={() => {this.tomain()}} type="primary">返回主页</Button>
          </div>
        </div>
      </main>
    )
  }
}
 
export default withRouter(NotFound)