diff --git a/projects/IoTCenter/Views/Home/Node.cshtml b/projects/IoTCenter/Views/Home/Node.cshtml index d9bf95b2..6a6e9261 100644 --- a/projects/IoTCenter/Views/Home/Node.cshtml +++ b/projects/IoTCenter/Views/Home/Node.cshtml @@ -413,43 +413,43 @@
电源
- - + +
模式
- - - - - + + + + +
温度
- +
风向
- - - + + +
风量
- - - - + + + +
@@ -462,53 +462,53 @@
- - - - - - - - - - - - + + + + + + + + + + + +
- - - - - - - - - - + + + + + + + + + +
- - - - - - + + + + + +
- - - - - - - + + + + + + +
@@ -520,53 +520,53 @@
- - - - - - - - - - - - + + + + + + + + + + + +
- - - - - - - - - - + + + + + + + + + +
- - - - - - + + + + + +
- - - - - - - + + + + + + +
diff --git a/projects/IoTCenter/iotcenter.db b/projects/IoTCenter/iotcenter.db index 561a2db4..4e0b571a 100644 Binary files a/projects/IoTCenter/iotcenter.db and b/projects/IoTCenter/iotcenter.db differ diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js b/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js index a8ecdec2..c370634b 100644 --- a/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js +++ b/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js @@ -440,6 +440,9 @@ function init() { }, SendCode1(event) { console.log(event.target); + if (event.type !== 'change' && !event.target.checked) { + return; + } var form = $(event.target).parents('form'); var url = form.attr('action') + '?' + form.serialize(); if (form.hasClass('type1')) { diff --git a/projects/IoTNode/iotnode.db b/projects/IoTNode/iotnode.db index 6b708285..9cacac9f 100644 Binary files a/projects/IoTNode/iotnode.db and b/projects/IoTNode/iotnode.db differ