mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 解决概览页接口报错 500 的问题 (#606)
This commit is contained in:
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…
x
Reference in New Issue
Block a user