阶段性提交

This commit is contained in:
刘祥超
2020-07-29 19:34:54 +08:00
parent e111522366
commit bc0d5094a3
56 changed files with 5799 additions and 959 deletions

View File

@@ -1,10 +1,20 @@
package nodes
import "github.com/iwind/TeaGo/actions"
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/iwind/TeaGo/actions"
)
type Helper struct {
}
func (this *Helper) BeforeAction(action *actions.ActionObject) {
action.Data["teaMenu"] = "nodes"
selectedTabbar, _ := action.Data["mainTab"]
tabbar := actionutils.NewTabbar()
tabbar.Add("节点管理", "", "/nodes", "", selectedTabbar == "node")
tabbar.Add("认证管理", "", "/nodes/grants", "", selectedTabbar == "grant")
actionutils.SetTabbar(action, tabbar)
}