记录和显示最近常用的集群

This commit is contained in:
GoEdgeLab
2021-05-03 11:32:59 +08:00
parent 6ead9a6496
commit 8698f302d5
6 changed files with 49 additions and 2 deletions

View File

@@ -203,5 +203,15 @@ func (this *IndexAction) RunGet(params struct {
}
this.Data["regions"] = regionMaps
// 记录最近访问
_, err = this.RPC().LatestItemRPC().IncreaseLatestItem(this.AdminContext(), &pb.IncreaseLatestItemRequest{
ItemType: "cluster",
ItemId: params.ClusterId,
})
if err != nil {
this.ErrorPage(err)
return
}
this.Show()
}