Skip to content

Commit 9e70ea8

Browse files
author
linmingwang
committed
修复get_menu_pk 函数中的变量名冲突可能导致返回值错误的问题
1 parent 26d6e88 commit 9e70ea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/core/permission.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def get_menu_pk(permission_data, url):
7979
# 1.直接get api/system/permission$ /api/system/config/system
8080
p_data = permission_data.get(f"{url[1:]}$")
8181
if not p_data:
82-
for p_path, p_data in permission_data.items():
82+
for p_path, permission_item in permission_data.items():
8383
if re.match(f"/{p_path}", url):
84-
return p_data
84+
return permission_item
8585
return p_data
8686

8787

0 commit comments

Comments
 (0)