Commit 19d6ea41 authored by 李纪文's avatar 李纪文

fix: 组态兼容小程序

parent ffb85185
......@@ -84,6 +84,7 @@ const ConfigurationView = (props) => {
const [videoTitle, setVideoTitle] = useState('');
twoID = `TDG${Date.now().toString(36)}`;
const navigatorAgent = /(iPhone|iOS|Android|Windows Phone)/i.test(navigator.userAgent);
const AdjustControlInput = useRef();
const AuthorFrom = useRef();
const ConfigurationRef = useRef();
......@@ -865,7 +866,7 @@ const ConfigurationView = (props) => {
mqttIP: globalConfig.mqtt_iotIP,
mqttPath: globalConfig.mqtt_path,
mqttSsl: globalConfig.mqtt_IsSSL,
siteCode: globalConfig.mqtt_mess.site_code,
siteCode: globalConfig?.mqtt_mess?.site_code || '',
devices: devicesCode,
callback: refreshData,
controlback: controlData,
......@@ -1710,6 +1711,7 @@ const ConfigurationView = (props) => {
),
{
click(e, node) {
if (navigatorAgent) return false;
const { data } = node;
nodeData = data;
const list = bindData.find((item) => {
......@@ -1772,6 +1774,7 @@ const ConfigurationView = (props) => {
),
{
click(e, node) {
if (navigatorAgent) return false;
const { data } = node;
nodeData = data;
const list = bindData.find((item) => {
......@@ -1913,6 +1916,7 @@ const ConfigurationView = (props) => {
),
{
click(e, node) {
if (navigatorAgent) return false;
const { data } = node;
nodeData = data;
const list = bindData.find((item) => {
......@@ -1987,6 +1991,7 @@ const ConfigurationView = (props) => {
),
{
click(e, node) {
if (navigatorAgent) return false;
const { data } = node;
nodeData = data;
const list = bindData.find((item) => {
......@@ -2128,6 +2133,7 @@ const ConfigurationView = (props) => {
),
{
click(e, node) {
if (navigatorAgent) return false;
const { data } = node;
nodeData = data;
const list = bindData.find((item) => {
......@@ -2462,6 +2468,7 @@ const ConfigurationView = (props) => {
),
{
click(e, node) {
if (navigatorAgent) return false;
const { data } = node;
nodeData = data;
const list = bindData.find((item) => {
......
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