From d17c42ca8f9a852080c1fd21fb20aea472a0241e Mon Sep 17 00:00:00 2001 From: yuyuanshifu <747342561@qq.com> Date: Tue, 11 Aug 2020 10:36:36 +0800 Subject: [PATCH] fix bug --- routers/repo/dir.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/dir.go b/routers/repo/dir.go index cdba538d7..a2fc07ae7 100755 --- a/routers/repo/dir.go +++ b/routers/repo/dir.go @@ -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) }