mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-08 16:00:26 +08:00
修复因为ClusterHelper而导致POST Action可能被阻止的情形
This commit is contained in:
@@ -27,7 +27,7 @@ func NewClusterHelper() *ClusterHelper {
|
|||||||
func (this *ClusterHelper) BeforeAction(actionPtr actions.ActionWrapper) (goNext bool) {
|
func (this *ClusterHelper) BeforeAction(actionPtr actions.ActionWrapper) (goNext bool) {
|
||||||
action := actionPtr.Object()
|
action := actionPtr.Object()
|
||||||
if action.Request.Method != http.MethodGet {
|
if action.Request.Method != http.MethodGet {
|
||||||
return
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
action.Data["teaMenu"] = "clusters"
|
action.Data["teaMenu"] = "clusters"
|
||||||
|
|||||||
Reference in New Issue
Block a user