mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-13 18:30:24 +08:00
阶段性提交
This commit is contained in:
23
internal/web/actions/default/clusters/helper.go
Normal file
23
internal/web/actions/default/clusters/helper.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package clusters
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/iwind/TeaGo/actions"
|
||||
)
|
||||
|
||||
type Helper struct {
|
||||
}
|
||||
|
||||
func NewHelper() *Helper {
|
||||
return &Helper{}
|
||||
}
|
||||
|
||||
func (this *Helper) BeforeAction(action *actions.ActionObject) {
|
||||
action.Data["teaMenu"] = "clusters"
|
||||
|
||||
selectedTabbar, _ := action.Data["mainTab"]
|
||||
|
||||
tabbar := actionutils.NewTabbar()
|
||||
tabbar.Add("集群", "", "/clusters", "", selectedTabbar == "cluster")
|
||||
actionutils.SetTabbar(action, tabbar)
|
||||
}
|
||||
Reference in New Issue
Block a user