fix: 解决概览页磁盘挂载点路径带空格无法正常显示的问题 (#5678)

This commit is contained in:
ssongliu 2024-07-04 17:54:32 +08:00 committed by GitHub
parent 9a38dcd2a7
commit 9e103baf94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,7 +253,7 @@ func loadDiskInfo() []dto.DiskInfo {
if isExclude {
continue
}
mounts = append(mounts, diskInfo{Type: fields[1], Device: fields[0], Mount: fields[6]})
mounts = append(mounts, diskInfo{Type: fields[1], Device: fields[0], Mount: strings.Join(fields[6:], " ")})
}
var (