Browse Source

🐛 fix: fix react key warning

pull/7799/head 4.3.0
chenshuai2144 5 years ago
parent
commit
ef9ecea98d
  1. 2
      package.json
  2. 3
      src/pages/ListTableList/index.tsx

2
package.json

@ -59,7 +59,7 @@
"@ant-design/pro-layout": "^6.5.0",
"@ant-design/pro-table": "^2.9.16",
"@umijs/route-utils": "^1.0.33",
"antd": "^4.8.6",
"antd": "^4.9.2",
"classnames": "^2.2.6",
"lodash": "^4.17.11",
"moment": "^2.25.3",

3
src/pages/ListTableList/index.tsx

@ -195,6 +195,7 @@ const TableList: React.FC<{}> = () => {
valueType: 'option',
render: (_, record) => [
<a
key="config"
onClick={() => {
handleUpdateModalVisible(true);
setCurrentRow(record);
@ -202,7 +203,7 @@ const TableList: React.FC<{}> = () => {
>
<FormattedMessage id="pages.searchTable.config" defaultMessage="配置" />
</a>,
<a href="https://procomponents.ant.design/">
<a key="subscribeAlert" href="https://procomponents.ant.design/">
<FormattedMessage id="pages.searchTable.subscribeAlert" defaultMessage="订阅警报" />
</a>,
],

Loading…
Cancel
Save