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)