mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	优化服务设置界面顶部菜单
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user