mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 15:36:45 +08:00
fix: 解决概览页接口报错 500 的问题 (#606)
This commit is contained in:
parent
a5be9ca226
commit
04a1cff37e
1 changed files with 4 additions and 1 deletions
|
@ -186,7 +186,10 @@ func loadDiskInfo() []dto.DiskInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < len(mounts); i++ {
|
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
|
var itemData dto.DiskInfo
|
||||||
itemData.Path = mounts[i].Mount
|
itemData.Path = mounts[i].Mount
|
||||||
itemData.Type = mounts[i].Type
|
itemData.Type = mounts[i].Type
|
||||||
|
|
Loading…
Add table
Reference in a new issue