mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
[Update] 修改资产使用patch方法更新时页面不提示messages信息
This commit is contained in:
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
Block a user