集群列表页也增加“创建节点”链接

This commit is contained in:
GoEdgeLab
2023-05-27 19:55:06 +08:00
parent c2804868dc
commit d381e6d72d
6 changed files with 87 additions and 1 deletions

View File

@@ -30,6 +30,11 @@ func (this *CreateNodeAction) Init() {
func (this *CreateNodeAction) RunGet(params struct {
ClusterId int64
}) {
if params.ClusterId <= 0 {
this.RedirectURL("/clusters")
return
}
var leftMenuItems = []maps.Map{
{
"name": "单个创建",