展示监控信息

This commit is contained in:
奶爸
2019-12-09 23:45:23 +08:00
parent db364099fb
commit f408066509
9 changed files with 157 additions and 84 deletions
+1
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