修复因为ClusterHelper而导致POST Action可能被阻止的情形

This commit is contained in:
GoEdgeLab
2021-05-03 15:31:59 +08:00
parent 589764104e
commit 4b44768f2a

View File

@@ -27,7 +27,7 @@ func NewClusterHelper() *ClusterHelper {
func (this *ClusterHelper) BeforeAction(actionPtr actions.ActionWrapper) (goNext bool) {
action := actionPtr.Object()
if action.Request.Method != http.MethodGet {
return
return true
}
action.Data["teaMenu"] = "clusters"