优化Dashboard界面

This commit is contained in:
GoEdgeLab
2021-01-21 19:22:06 +08:00
parent 2e1450d3d2
commit 17d8707112
6 changed files with 31 additions and 8 deletions

View File

@@ -46,6 +46,11 @@ func (this *IndexAction) RunGet(params struct{}) {
"countAPINodes": resp.CountAPINodes,
"countDBNodes": resp.CountDBNodes,
"countUserNodes": resp.CountUserNodes,
"canGoServers": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeServer),
"canGoNodes": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeNode),
"canGoSettings": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeSetting),
"canGoUsers": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeUser),
}
// 今日流量