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