️ 服务监控数据加载优化

This commit is contained in:
naiba
2021-07-17 13:53:13 +08:00
parent c11e3e2e49
commit d116347ef9
5 changed files with 73 additions and 58 deletions

View File

@@ -80,10 +80,9 @@ func (p *commonPage) checkViewPassword(c *gin.Context) {
}
func (p *commonPage) service(c *gin.Context) {
msm := dao.ServiceSentinelShared.LoadStats()
c.HTML(http.StatusOK, "theme-"+dao.Conf.Site.Theme+"/service", mygin.CommonEnvironment(c, gin.H{
"Title": "服务状态",
"Services": msm,
"Services": dao.ServiceSentinelShared.LoadStats(),
"CustomCode": dao.Conf.Site.CustomCode,
}))
}