瀏覽代碼

Fixed SMART data is null bug

TC pushbot 5 4 年之前
父節點
當前提交
b2c951658e
共有 3 個文件被更改,包括 1 次插入1 次删除
  1. 二進制
      documents/1.110 release drawing/postcard.png
  2. 二進制
      documents/1.110 release drawing/postcard.psd
  3. 1 1
      web/SystemAO/disk/smart/smart.html

二進制
documents/1.110 release drawing/postcard.png


二進制
documents/1.110 release drawing/postcard.psd


+ 1 - 1
web/SystemAO/disk/smart/smart.html

@@ -74,7 +74,7 @@
           $.getJSON("/system/disk/smart/getSMART", function(data) {
                 smartDATA = data;
                 $("#mainmenu").html("");
-                if ($(data).length == 0) {
+                if (data == null || $(data).length == 0) {
                     $("#smart-holder").append(append("-1","No disk find!","",-1));
                     $("#healthy").text("No disks detected.");
                     $("#totaldisk").text("0");