From 229e2c5144bcc998b0a6b9f70bf1e31d3bb702f1 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 27 May 2023 17:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/clusters/clusterutils/cluster_helper.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/web/actions/default/clusters/clusterutils/cluster_helper.go b/internal/web/actions/default/clusters/clusterutils/cluster_helper.go index dbf408b2..9395c54c 100644 --- a/internal/web/actions/default/clusters/clusterutils/cluster_helper.go +++ b/internal/web/actions/default/clusters/clusterutils/cluster_helper.go @@ -61,7 +61,13 @@ func (this *ClusterHelper) BeforeAction(actionPtr actions.ActionWrapper) (goNext var isInCluster = nodeId <= 0 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 if !isInCluster {