Commit 16a09218 authored by lijiehua's avatar lijiehua Committed by 陈帅

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

parent 8a8ffc51
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
}, },
"dependencies": { "dependencies": {
"@antv/data-set": "^0.9.0", "@antv/data-set": "^0.9.0",
"@babel/polyfill": "^7.0.0-beta.36",
"antd": "^3.8.2", "antd": "^3.8.2",
"bizcharts": "^3.1.10", "bizcharts": "^3.1.10",
"bizcharts-plugin-slider": "^2.0.3", "bizcharts-plugin-slider": "^2.0.3",
......
...@@ -9,14 +9,14 @@ export default class SearchList extends Component { ...@@ -9,14 +9,14 @@ export default class SearchList extends Component {
handleTabChange = key => { handleTabChange = key => {
const { dispatch, match } = this.props; const { dispatch, match } = this.props;
switch (key) { switch (key) {
case 'Articles': case 'articles':
dispatch(routerRedux.push(`${match.url}/Articles`)); dispatch(routerRedux.push(`${match.url}/articles`));
break; break;
case 'Applications': case 'applications':
dispatch(routerRedux.push(`${match.url}/Applications`)); dispatch(routerRedux.push(`${match.url}/applications`));
break; break;
case 'Projects': case 'projects':
dispatch(routerRedux.push(`${match.url}/Projects`)); dispatch(routerRedux.push(`${match.url}/projects`));
break; break;
default: default:
break; break;
...@@ -26,7 +26,7 @@ export default class SearchList extends Component { ...@@ -26,7 +26,7 @@ export default class SearchList extends Component {
render() { render() {
const tabList = [ const tabList = [
{ {
key: 'Articles', key: 'articles',
tab: '文章', tab: '文章',
}, },
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment