提交 16a09218 编写于 作者: L lijiehua 提交者: 陈帅

搜索列(SearchList)头部的tablist不能切换

上级 8a8ffc51
......@@ -9,14 +9,14 @@ export default class SearchList extends Component {
handleTabChange = key => {
const { dispatch, match } = this.props;
switch (key) {
case 'Articles':
dispatch(routerRedux.push(`${match.url}/Articles`));
case 'articles':
dispatch(routerRedux.push(`${match.url}/articles`));
break;
case 'Applications':
dispatch(routerRedux.push(`${match.url}/Applications`));
case 'applications':
dispatch(routerRedux.push(`${match.url}/applications`));
break;
case 'Projects':
dispatch(routerRedux.push(`${match.url}/Projects`));
case 'projects':
dispatch(routerRedux.push(`${match.url}/projects`));
break;
default:
break;
......@@ -26,7 +26,7 @@ export default class SearchList extends Component {
render() {
const tabList = [
{
key: 'Articles',
key: 'articles',
tab: '文章',
},
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册