From da087ebace9e216f7e91821569293bd46aac6798 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 10 Jan 2024 10:54:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20base-=20put=20config=20=E6=97=B6update?= =?UTF-8?q?=5Fdict=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/system/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/system/views.py b/apps/system/views.py index c80586b4..33e94c90 100755 --- a/apps/system/views.py +++ b/apps/system/views.py @@ -795,8 +795,8 @@ class SysConfigView(MyLoggingMixin, APIView): try: project = Project.objects.get(code=project_code) config = project.config_json - new_config = update_dict(config, data) - project.config_json = new_config + update_dict(config, data) + project.config_json = config project.save() except Project.DoesNotExist: raise ParseError('项目不存在')