king
2020-03-22 f0602b981659c6d1ff18e8dba4ca1ce89c5f5610
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
import React, {Component} from 'react'
import { withRouter } from 'react-router-dom'
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 type="button" onClick={() => {this.tomain()}} className="ant-btn ant-btn-primary"><span>返回主页</span></button>
          </div>
        </div>
      </main>
    )
  }
}
 
export default withRouter(NotFound)