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

This commit is contained in:
刘祥超
2021-05-03 15:31:59 +08:00
parent c2ebf81e6c
commit 9cf5f56e59

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"