mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			499 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			499 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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)
 | 
						|
}
 |