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}/> )}