Browse Source

fix: 解决概览页接口报错 500 的问题 (#606)

pull/607/head
ssongliu 2 years ago committed by GitHub
parent
commit
04a1cff37e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      backend/app/service/dashboard.go

5
backend/app/service/dashboard.go

@ -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…
Cancel
Save