import React, { Component } from 'react'; import router from 'umi/router'; import { connect } from 'dva'; import { Input } from 'antd'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; export default @connect() class SearchList extends Component { handleTabChange = key => { const { match } = this.props; switch (key) { case 'articles': router.push(`${match.url}/articles`); break; case 'applications': router.push(`${match.url}/applications`); break; case 'projects': router.push(`${match.url}/projects`); break; default: break; } }; render() { const tabList = [ { key: 'articles', tab: '文章', }, { key: 'projects', tab: '项目', }, { key: 'applications', tab: '应用', }, ]; const mainSearch = (
); const { match, children, location } = this.props; return ( {children} {/* {routes.map(item => ( ))} */} ); } }