diff --git a/controllers/FileController.go b/controllers/FileController.go index 085b73a..0d526b3 100644 --- a/controllers/FileController.go +++ b/controllers/FileController.go @@ -131,6 +131,7 @@ func (this *FileController) HeadImgUpload() { this.ServeJSON() return } + this.SetSession("headimg", urlDir) this.Data["json"] = models.ReurnData("", urlDir) this.ServeJSON() return diff --git a/views/index.html b/views/index.html index 3d2f2fc..1198786 100644 --- a/views/index.html +++ b/views/index.html @@ -43,7 +43,7 @@
-
+
{{template "footer"}}