Browse Source

修改头像,session问题

layui
mail_yanpeng@163.com 6 years ago
parent
commit
865614b7ac
  1. 1
      controllers/FileController.go
  2. 2
      views/index.html

1
controllers/FileController.go

@ -131,6 +131,7 @@ func (this *FileController) HeadImgUpload() {
this.ServeJSON() this.ServeJSON()
return return
} }
this.SetSession("headimg", urlDir)
this.Data["json"] = models.ReurnData("", urlDir) this.Data["json"] = models.ReurnData("", urlDir)
this.ServeJSON() this.ServeJSON()
return return

2
views/index.html

@ -43,7 +43,7 @@
<div> <div>
</div> </div>
<div style="margin-top: 30px"> <div style="margin: 30px 5% 0 5%">
{{template "footer"}} {{template "footer"}}
</div> </div>
</body> </body>

Loading…
Cancel
Save