mirror of https://github.com/1Panel-dev/1Panel
fix: 解决概览页接口报错 500 的问题 (#606)
parent
a5be9ca226
commit
04a1cff37e
|
@ -186,7 +186,10 @@ func loadDiskInfo() []dto.DiskInfo {
|
|||
}
|
||||
|
||||
for i := 0; i < len(mounts); i++ {
|
||||
state, _ := disk.Usage(mounts[i].Mount)
|
||||
state, err := disk.Usage(mounts[i].Mount)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
var itemData dto.DiskInfo
|
||||
itemData.Path = mounts[i].Mount
|
||||
itemData.Type = mounts[i].Type
|
||||
|
|
Loading…
Reference in New Issue