From 16a0921837249cce1c214e48d34c5079c426e483 Mon Sep 17 00:00:00 2001 From: lijiehua <41830859@qq.com> Date: Sun, 19 Aug 2018 14:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=88=97(SearchList)?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E7=9A=84tablist=E4=B8=8D=E8=83=BD=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/pages/List/List.js | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 1b59d839..3c01e941 100755 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ }, "dependencies": { "@antv/data-set": "^0.9.0", - "@babel/polyfill": "^7.0.0-beta.36", "antd": "^3.8.2", "bizcharts": "^3.1.10", "bizcharts-plugin-slider": "^2.0.3", diff --git a/src/pages/List/List.js b/src/pages/List/List.js index 5e870755..3c7aa9ee 100644 --- a/src/pages/List/List.js +++ b/src/pages/List/List.js @@ -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: '文章', }, { -- GitLab