mirror of https://github.com/jumpserver/jumpserver
[Update] 修改资产使用patch方法更新时页面不提示messages信息
parent
bb1a941240
commit
3da43bf01d
|
@ -224,7 +224,7 @@ class ApiMessageMixin:
|
|||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
resp = super().dispatch(request, *args, **kwargs)
|
||||
if request.method.lower() in ("get", "delete"):
|
||||
if request.method.lower() in ("get", "delete", "patch"):
|
||||
return resp
|
||||
if resp.status_code >= 400:
|
||||
return resp
|
||||
|
|
Loading…
Reference in New Issue