优化界面

This commit is contained in:
刘祥超
2023-05-27 17:11:18 +08:00
parent a023b3401e
commit a2546582f2

View File

@@ -61,7 +61,13 @@ func (this *ClusterHelper) BeforeAction(actionPtr actions.ActionWrapper) (goNext
var isInCluster = nodeId <= 0 var isInCluster = nodeId <= 0
var tabbar = actionutils.NewTabbar() var tabbar = actionutils.NewTabbar()
tabbar.Add("", "", "/clusters", "arrow left", false) {
var url = "/clusters"
if !isInCluster {
url = "/clusters/cluster/nodes?clusterId=" + clusterIdString
}
tabbar.Add("", "", url, "arrow left", false)
}
{ {
var url = "/clusters/cluster?clusterId=" + clusterIdString var url = "/clusters/cluster?clusterId=" + clusterIdString
if !isInCluster { if !isInCluster {