diff --git a/projects/WebMVC/wwwroot/js/iot.js b/projects/WebMVC/wwwroot/js/iot.js index 18bf8f63..e15d809c 100644 --- a/projects/WebMVC/wwwroot/js/iot.js +++ b/projects/WebMVC/wwwroot/js/iot.js @@ -99,7 +99,7 @@ deviceInfo['串口控制器'] = 'iot-serial-port'; function updateSelect(action, id, value) { var select = $('select#' + id); if (select.length) { - select.find("option[value!=null]").remove(); + select.find("option[value!='']").remove(); if (value) { var url = config.baseUrl + '/IoTCenter/Admin/Ajax/' + action + '?parentId='+ value; $.getJSON(url, function (data) { diff --git a/projects/WebMVC/wwwroot/router/admin/command/edit.html b/projects/WebMVC/wwwroot/router/admin/command/edit.html index ca668023..aa348f0c 100644 --- a/projects/WebMVC/wwwroot/router/admin/command/edit.html +++ b/projects/WebMVC/wwwroot/router/admin/command/edit.html @@ -100,7 +100,7 @@