Browse Source

fix bug

master
yuyuanshifu 4 years ago
parent
commit
d17c42ca8f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/dir.go

+ 2
- 2
routers/repo/dir.go View File

@@ -47,6 +47,8 @@ func DirIndex(ctx *context.Context) {
return
}
}

ctx.Data["Title"] = attachment.Name
}

files, err := ioutil.ReadDir(setting.Attachment.Minio.RealPath + setting.Attachment.Minio.Bucket + "/" + setting.Attachment.Minio.BasePath +
@@ -86,7 +88,5 @@ func DirIndex(ctx *context.Context) {

ctx.Data["Dirs"] = fileInfos

ctx.Data["Title"] = attachment.Name

ctx.HTML(200, tplDirIndex)
}

Loading…
Cancel
Save