From 46015147cd0af66760504fad40168ab48209f2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E4=BA=8C=E7=8C=9B?= Date: Thu, 5 Dec 2019 22:23:55 +0800 Subject: [PATCH] U web update --- spug_web/src/pages/alarm/group/Form.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spug_web/src/pages/alarm/group/Form.js b/spug_web/src/pages/alarm/group/Form.js index 01c2fe0..6ba5a3b 100644 --- a/spug_web/src/pages/alarm/group/Form.js +++ b/spug_web/src/pages/alarm/group/Form.js @@ -11,8 +11,6 @@ class ComForm extends React.Component { super(props); this.state = { loading: false, - targetKeys: [], - dataSource: contactStore.records.map(x => ({key: x.id, title: x.name})) } } @@ -60,9 +58,7 @@ class ComForm extends React.Component { this.setState({targetKeys: v})} + dataSource={contactStore.records.map(x => ({key: x.id, title: x.name}))} render={item => item.title}/> )}