From 5689613f82fe17ade5c382c0606fcab275c155d8 Mon Sep 17 00:00:00 2001 From: wcq <744800102@qq.com> Date: Fri, 10 Feb 2023 14:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Crud/AuthRuleCrud.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Crud/AuthRuleCrud.py b/Crud/AuthRuleCrud.py index 7d45ff3..0f8fccd 100644 --- a/Crud/AuthRuleCrud.py +++ b/Crud/AuthRuleCrud.py @@ -87,6 +87,7 @@ def change_auth_rule_node(db: Session, node_id: int, name: str, belong: Union[in if parent_node.node_type != 'category': raise CommonException("父节点类型不为分类节点") db.query(AuthRuleNode).filter_by(node_id).update({'name': name, 'belong': belong}) + db.commit() def get_default_auth_rule_config_by_id(db: Session, item_id: int):