From 417f99d94f27408bb02189648df10598924cb9bc Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 27 Oct 2024 14:49:33 +0800 Subject: [PATCH] fix --- cmd/dashboard/controller/service.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/dashboard/controller/service.go b/cmd/dashboard/controller/service.go index 2986dda..2d61abf 100644 --- a/cmd/dashboard/controller/service.go +++ b/cmd/dashboard/controller/service.go @@ -107,10 +107,10 @@ func listServiceHistory(c *gin.Context) ([]*model.ServiceInfos, error) { infos, ok := resultMap[history.ServiceID] if !ok { infos = &model.ServiceInfos{ - ServiceID: history.ServiceID, - ServerID: history.ServerID, - // ServiceName: singleton.ServiceSentinel.Services[history.ServiceID].Name, - ServerName: singleton.ServerList[history.ServerID].Name, + ServiceID: history.ServiceID, + ServerID: history.ServerID, + ServiceName: singleton.ServiceSentinelShared.Services[history.ServiceID].Name, + ServerName: singleton.ServerList[history.ServerID].Name, } resultMap[history.ServiceID] = infos sortedServiceIDs = append(sortedServiceIDs, history.ServiceID)