浏览代码

Push before platform switch

TC pushbot 5 4 年之前
父节点
当前提交
0c905cf434
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      web/SystemAO/disk/diskmg.html

+ 4 - 2
web/SystemAO/disk/diskmg.html

@@ -650,11 +650,13 @@
                           var diskID = thisDisk["name"];
                           if (thisDisk["children"] === undefined || thisDisk["children"] === null){
                               //This disk do not have any child. Assume a large read-only raw partition.
-                              var size = thisDisk[size] || 0;
+                              var size = thisDisk["size"] || 0;
+                              var partitionID = thisDisk["name"] || "✖";
+                              console.log(thisDisk);
                               disks[diskID] = {
                                   "partitionsTotalSize":size,
                                   "partitionNames":["Raw"],
-                                  "partitionID":["✖"],
+                                  "partitionID":[partitionID],
                                   "partitionVolume":[size],
                                   "Type":[thisDisk["type"]],
                                   "Mounted":[thisDisk["mountpoint"] !== null],