集群可以单独设置WebP策略

This commit is contained in:
GoEdgeLab
2022-04-01 16:42:08 +08:00
parent 67602604dd
commit e21587b279
9 changed files with 188 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ import (
"strconv"
)
// 单个集群的帮助
// ClusterHelper 单个集群的帮助
type ClusterHelper struct {
}
@@ -124,6 +124,12 @@ func (this *ClusterHelper) createSettingMenu(cluster *pb.NodeCluster, info *pb.F
"isActive": selectedItem == "dns",
"isOn": cluster.DnsDomainId > 0 || len(cluster.DnsName) > 0,
})
items = append(items, maps.Map{
"name": "WebP",
"url": "/clusters/cluster/settings/webp?clusterId=" + clusterId,
"isActive": selectedItem == "webp",
"isOn": info != nil && info.WebpIsOn,
})
items = append(items, maps.Map{
"name": "统计指标",
"url": "/clusters/cluster/settings/metrics?clusterId=" + clusterId,