Commit f7a0a634 authored by 李纪文's avatar 李纪文

fix: 修改报错

parent 54f10b61
......@@ -99,7 +99,9 @@ const ConfigurationView = (props) => {
const AdjustControlInput = useRef();
const AuthorFrom = useRef();
const ConfigurationRef = useRef();
const DomRef = useRef();
const ConfigurationViewRef = useCallback((dom) => {
if (DomRef) DomRef.current = !!dom;
setDomFlag(!!dom);
});
const customBack = props.customBack ? props.customBack : () => {};
......@@ -905,7 +907,7 @@ const ConfigurationView = (props) => {
nodeDataArray: [],
linkDataArray: [],
};
if (!ConfigurationRef.current) return setNoInitial(true);
if (DomRef && !DomRef.current) return setNoInitial(true);
mqttView = devicesCode.length
? new MqttView({
mqttIP: globalConfig.mqtt_iotIP,
......
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