Compare commits

..

No commits in common. "035a072f9cd2b81b82b6e6eeebd2470b4e75f4db" and "edba8b2b101add7e3dbc65259452ac4ca2820883" have entirely different histories.

5 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,7 @@
src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png"
class="layui-nav-img"
/>
{{ session.name }}
{{ session.nickname }}
</a>
<dl class="layui-nav-child">
<dd><a href="/home/profile">资料</a></dd> <!-- 修改这里的href指向/profile -->

View File

@ -21,7 +21,7 @@
src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png"
class="layui-nav-img"
/>
{{ session.name }}
{{ session.nickname }}
</a>
<dl class="layui-nav-child">
<dd><a href="/home/profile">资料</a></dd> <!-- 修改这里的href指向/profile -->

View File

@ -21,7 +21,7 @@
src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png"
class="layui-nav-img"
/>
{{ session.name }}
{{ session.nickname }}
</a>
<dl class="layui-nav-child">
<dd><a href="/home/profile">资料</a></dd> <!-- 修改这里的href指向/profile -->

View File

@ -124,6 +124,7 @@ def get_menu():
if 'role' in session:
role = session['role']
menu_items = db_manager.get_menu(role)
# print(menu_items)
# 转换菜单项为期望的格式并返回
formatted_menu_items = [

View File

@ -33,7 +33,7 @@ VALUES ('课程信息', 'student', '/course-info', 1),
INSERT INTO menu_items (menu_name, role, path, `order`)
VALUES ('课程类别', 'teacher', '/course-category', 1),
('课程信息', 'teacher', '/course-info', 2),
('课程签到', 'teacher', '/attendance-teacher', 3),
('课程签到', 'teacher', '/attendance', 3),
('签到提醒', 'teacher', '/attendance-reminder', 4);