Browse Source

fix bugs

dev
zhaobing’ 1 year ago
parent
commit
dee601a851
  1. 4
      web/client/src/sections/firmwareUpgrade/containers/deviceManagement.jsx

4
web/client/src/sections/firmwareUpgrade/containers/deviceManagement.jsx

@ -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])

Loading…
Cancel
Save