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

This commit is contained in:
刘祥超
2021-12-02 17:41:51 +08:00
parent c6ed579797
commit ae412909f6
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)