xzw 4 年之前
父節點
當前提交
83928aba5e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      js/main_2020_show.js

+ 4 - 4
js/main_2020_show.js

@@ -15564,8 +15564,8 @@ window.Modernizr = function(n, e, t) {
                   },
                   dataType: "json",
                   contentType: "application/json",
-                  url: `/api/device/getStatus/${hardware.deviceCode}`, 
-                  success:  (data)=> {
+                  url: `/api/device/getStatus/${hardware.code}`, 
+                  success: (data)=> {
                     console.log(data)  
                     if (data.code === 0) {
 
@@ -15573,7 +15573,7 @@ window.Modernizr = function(n, e, t) {
                         $("#hotPannel>div").addClass("hide")
                         if(devType == "灯控"){
                             $("#hotPannel>div[name='light']").removeClass("hide")
-                            
+                            $("#hotPannel>input").prop('checked', true);
                         }else if(devType == "温湿度"){
                             $("#hotPannel>#temperature").removeClass("hide")
                             loadTemperature({
@@ -26076,7 +26076,7 @@ window.Modernizr = function(n, e, t) {
             minimalMemoryMode: r.valueFromHash("m3", r.isMobile()),
             startupFlyinDelay: 3e3,
             dollhouseDefault: {
-                minDistance: 10,
+                minDistance: 8,
                 maxDistance: 50,
                 minPolarAngle: n.Math.degToRad(10),
                 maxPolarAngle: n.Math.degToRad(90)