Commit f41fea85 authored by 陈龙's avatar 陈龙

fix: 修复

parent fd88a733
...@@ -1451,8 +1451,12 @@ const HistoryView = (props) => { ...@@ -1451,8 +1451,12 @@ const HistoryView = (props) => {
if ( if (
deviceParams?.length !== 1 || deviceParams?.length !== 1 ||
(deviceParams?.length === 1 && deviceParams?.[0]?.sensors?.split(',')?.length > 1) (deviceParams?.length === 1 && deviceParams?.[0]?.sensors?.split(',')?.length > 1)
) ) {
return setCompleteInit(true); setCompleteInit(true);
setCombineSensors([]);
return
}
setLoading(true); setLoading(true);
const { deviceCode, deviceType, sensors } = deviceParams[0]; const { deviceCode, deviceType, sensors } = deviceParams[0];
let _id = ( let _id = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment