|
@@ -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':
|
|
|
|
|
- dispatch(routerRedux.push(`${match.url}/Articles`));
|
|
|
|
|
|
|
+ case 'articles':
|
|
|
|
|
+ dispatch(routerRedux.push(`${match.url}/articles`));
|
|
|
break;
|
|
break;
|
|
|
- case 'Applications':
|
|
|
|
|
- dispatch(routerRedux.push(`${match.url}/Applications`));
|
|
|
|
|
|
|
+ case 'applications':
|
|
|
|
|
+ dispatch(routerRedux.push(`${match.url}/applications`));
|
|
|
break;
|
|
break;
|
|
|
- case 'Projects':
|
|
|
|
|
- dispatch(routerRedux.push(`${match.url}/Projects`));
|
|
|
|
|
|
|
+ case 'projects':
|
|
|
|
|
+ dispatch(routerRedux.push(`${match.url}/projects`));
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|
|
@@ -26,7 +26,7 @@ export default class SearchList extends Component {
|
|
|
render() {
|
|
render() {
|
|
|
const tabList = [
|
|
const tabList = [
|
|
|
{
|
|
{
|
|
|
- key: 'Articles',
|
|
|
|
|
|
|
+ key: 'articles',
|
|
|
tab: '文章',
|
|
tab: '文章',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|