优化首页显示效果

This commit is contained in:
Minho
2018-02-28 16:43:19 +08:00
parent 87f0f2faf8
commit ddbd33a38e
3 changed files with 11 additions and 2 deletions

View File

@@ -23,6 +23,11 @@ type BaseController struct {
func (c *BaseController) Prepare() {
c.Data["SiteName"] = "MinDoc"
c.Data["Member"] = models.Member{}
controller,action := c.GetControllerAndAction()
c.Data["ActionName"] = action
c.Data["ControllerName"] = controller
c.EnableAnonymous = false
c.EnableDocumentHistory = false