实现服务看板(企业版)

This commit is contained in:
GoEdgeLab
2021-07-07 19:55:32 +08:00
parent d42fafd8ed
commit ed252cbf15
16 changed files with 564 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
package server
import (
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
@@ -34,5 +35,9 @@ func (this *IndexAction) RunGet(params struct {
}
// HTTP跳转到访问日志
this.RedirectURL("/servers/server/log?serverId=" + strconv.FormatInt(params.ServerId, 10))
if teaconst.IsPlus {
this.RedirectURL("/servers/server/boards?serverId=" + strconv.FormatInt(params.ServerId, 10))
} else {
this.RedirectURL("/servers/server/stat?serverId=" + strconv.FormatInt(params.ServerId, 10))
}
}