域名服务集群创建时可以选择开启访问日志

This commit is contained in:
GoEdgeLab
2021-06-05 15:38:57 +08:00
parent 33799e007c
commit 47edae4490
5 changed files with 73 additions and 30 deletions

View File

@@ -19,6 +19,14 @@ func (this *CreateAction) Init() {
}
func (this *CreateAction) RunGet(params struct{}) {
// 集群数量
countClustersResp, err := this.RPC().NSClusterRPC().CountAllEnabledNSClusters(this.AdminContext(), &pb.CountAllEnabledNSClustersRequest{})
if err != nil {
this.ErrorPage(err)
return
}
this.Data["countClusters"] = countClustersResp.Count
this.Show()
}