diff --git a/src/pages/List/TableList.js b/src/pages/List/TableList.js index 1230c5099ebb51389b5675e01177e061a4744d87..f3b9a1dd247ecf3e7e23dc303326a7b3b328b7d3 100644 --- a/src/pages/List/TableList.js +++ b/src/pages/List/TableList.js @@ -1,7 +1,7 @@ import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; -import router from 'umi/router'; +import Link from 'umi/link'; import { Row, Col, @@ -293,7 +293,7 @@ class TableList extends PureComponent { { title: '规则名称', dataIndex: 'name', - render: text => this.previewItem(text)}>{text}, + render: text => {text}, }, { title: '描述', @@ -383,10 +383,6 @@ class TableList extends PureComponent { }); }; - previewItem = id => { - router.push(`/profile/basic/${id}`); - }; - handleFormReset = () => { const { form, dispatch } = this.props; form.resetFields();