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