mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-04 21:15:19 +08:00
优化代码
This commit is contained in:
@@ -19,7 +19,7 @@ func (this *Helper) BeforeAction(action *actions.ActionObject) {
|
||||
|
||||
action.Data["teaMenu"] = "db"
|
||||
|
||||
selectedTabbar, _ := action.Data["mainTab"]
|
||||
var selectedTabbar = action.Data["mainTab"]
|
||||
|
||||
var tabbar = actionutils.NewTabbar()
|
||||
tabbar.Add(this.Lang(action, codes.DBNode_TabNodes), "", "/db", "", selectedTabbar == "db")
|
||||
|
||||
@@ -63,6 +63,10 @@ func (this *LogsAction) RunGet(params struct {
|
||||
Offset: page.Offset,
|
||||
Size: page.Size,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
|
||||
logs := []maps.Map{}
|
||||
for _, log := range logsResp.NodeLogs {
|
||||
|
||||
Reference in New Issue
Block a user