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)
|