|
@ -48,8 +48,10 @@ const DeviceManagement = (props) => { |
|
|
dispatch(firmwareUpgrade.getFirmware()).then(res=>{ |
|
|
dispatch(firmwareUpgrade.getFirmware()).then(res=>{ |
|
|
if(res.success) setVData(res.payload.data) |
|
|
if(res.success) setVData(res.payload.data) |
|
|
}) |
|
|
}) |
|
|
},[]) |
|
|
},[pepProjectId]) |
|
|
useEffect(()=>{ |
|
|
useEffect(()=>{ |
|
|
|
|
|
setData([]) |
|
|
|
|
|
setId(null) |
|
|
if(thingIds&&thingIds.length){ |
|
|
if(thingIds&&thingIds.length){ |
|
|
const data={thingIds:thingIds.split(',')[0]||'000'}//给一个初始化的值 |
|
|
const data={thingIds:thingIds.split(',')[0]||'000'}//给一个初始化的值 |
|
|
setId(thingIds.split(',')[0]) |
|
|
setId(thingIds.split(',')[0]) |
|
|