|
|
@ -50,6 +50,8 @@ const DeviceManagement = (props) => { |
|
|
|
}) |
|
|
|
},[pepProjectId]) |
|
|
|
useEffect(()=>{ |
|
|
|
setData([]) |
|
|
|
setId(null) |
|
|
|
if(thingIds&&thingIds.length){ |
|
|
|
const data={thingIds:thingIds.split(',')[0]||'000'}//给一个初始化的值 |
|
|
|
setId(thingIds.split(',')[0]) |
|
|
@ -242,7 +244,6 @@ const DeviceManagement = (props) => { |
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
|
const { auth, global, getPush } = state; |
|
|
|
console.log(222, global); |
|
|
|
return { |
|
|
|
loading: getPush.isRequesting, |
|
|
|
user: auth.user, |
|
|
|