展示监控信息

This commit is contained in:
奶爸
2019-12-09 23:45:23 +08:00
parent bfe6d48927
commit 8d791d91c1
9 changed files with 157 additions and 84 deletions

View File

@@ -13,6 +13,7 @@ import (
// CommonEnvironment ..
func CommonEnvironment(c *gin.Context, data map[string]interface{}) gin.H {
data["MatchedPath"] = c.MustGet("MatchedPath")
data["Version"] = dao.Version
// 站点标题
if t, has := data["Title"]; !has {
data["Title"] = dao.Conf.Site.Brand