优化服务设置界面顶部菜单

This commit is contained in:
GoEdgeLab
2021-12-02 17:41:51 +08:00
parent 889417beda
commit 4519acec07
44 changed files with 143 additions and 100 deletions

View File

@@ -68,6 +68,11 @@ func (this *ServerHelper) createLeftMenu(action *actions.ActionObject) {
return
}
// 初始化数据
if !action.Data.Has("server") {
action.Data["server"] = maps.Map{"id": server.Id, "name": server.Name}
}
// 服务管理
serverConfig := &serverconfigs.ServerConfig{}
err = json.Unmarshal(server.Config, serverConfig)