Browse Source

Fixed SMART data is null bug

TC pushbot 5 4 years ago
parent
commit
b2c951658e

BIN
documents/1.110 release drawing/postcard.png


BIN
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");