调整界面

This commit is contained in:
刘祥超
2020-11-10 15:40:22 +08:00
parent 7f5353323c
commit f213137a30
35 changed files with 130 additions and 110 deletions

View File

@@ -1,7 +1,6 @@
package components
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/iwind/TeaGo/actions"
)
@@ -14,11 +13,4 @@ func NewHelper() *Helper {
func (this *Helper) BeforeAction(action *actions.ActionObject) {
action.Data["teaMenu"] = "servers"
selectedTabbar, _ := action.Data["mainTab"]
tabbar := actionutils.NewTabbar()
tabbar.Add("服务", "", "/servers", "", selectedTabbar == "server")
tabbar.Add("通用", "", "/servers/components", "", selectedTabbar == "component")
actionutils.SetTabbar(action, tabbar)
}