Update: (步骤备份)更新 Pear Admin 框架版本与 Pear Admin Layui 一致,尝试重写页面

This commit is contained in:
wojiaoyishang
2025-01-19 20:03:18 +08:00
parent 43370ad078
commit d4a1b0ec57
63 changed files with 105722 additions and 2633 deletions
+9 -2
View File
@@ -43,6 +43,8 @@ def configs():
"keepState": True,
# 是否开启 Tab 记忆
"session": True,
# 预加载
"preload": False,
# 最大可打开的选项卡数量
"max": 30,
"index": {
@@ -117,11 +119,13 @@ def menu():
# 当前节点添加子节点
_dict['children'] = copy.deepcopy(menu_dict[_dict['id']])
_dict['children'].sort(key=lambda item: item['sort'])
# 为每个子菜单添加 "openType": "_component"
for child in _dict['children']:
child['openType'] = '_component'
# 删除子节点
del menu_dict[_dict['id']]
if _dict['parent_id'] not in menu_dict:
menu_dict[_dict['parent_id']] = [_dict]
else:
menu_dict[_dict['parent_id']].append(_dict)
@@ -138,6 +142,9 @@ def menu():
# 当前节点添加子节点
_dict['children'] = copy.deepcopy(menu_dict[_dict['id']])
_dict['children'].sort(key=lambda item: item['sort'])
# 为每个子菜单添加 "openType": "_component"
for child in _dict['children']:
child['openType'] = '_component'
# 删除子节点
del menu_dict[_dict['id']]
@@ -151,4 +158,4 @@ def menu():
@bp.get('/welcome')
@login_required
def welcome():
return render_template('system/console/console.html')
return render_template('system/analysis/main.html')