From d337965bcee337360e1658301aa98b1dfe7c0dca Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 3 Apr 2025 11:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=20server?= =?UTF-8?q?=20=E4=BD=BF=E7=94=A8=E8=93=9D=E5=9B=BE=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E9=99=8D=E4=BD=8E=E7=BB=B4=E6=8A=A4=E6=88=90=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E9=99=8D=E4=BD=8E=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=97=B6=E5=AF=B9=E5=85=B6=E4=BB=96=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/blueprints/contacts.py | 2 +- admin/dashboard/blueprints/messages.py | 2 +- admin/dashboard/blueprints/robot.py | 2 +- admin/dashboard/server.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/dashboard/blueprints/contacts.py b/admin/dashboard/blueprints/contacts.py index ad847ca..42dbddc 100644 --- a/admin/dashboard/blueprints/contacts.py +++ b/admin/dashboard/blueprints/contacts.py @@ -7,7 +7,7 @@ contacts_bp = Blueprint('contacts', __name__, url_prefix='/contacts') logger = logging.getLogger("ContactsBlueprint") # 联系人管理页面 -@contacts_bp.route('/') +@contacts_bp.route('/contacts') @login_required def contacts_management(): """通讯录管理页面""" diff --git a/admin/dashboard/blueprints/messages.py b/admin/dashboard/blueprints/messages.py index 6cd9562..93f75d8 100644 --- a/admin/dashboard/blueprints/messages.py +++ b/admin/dashboard/blueprints/messages.py @@ -10,7 +10,7 @@ messages_bp = Blueprint('messages', __name__, url_prefix='/messages') logger = logging.getLogger("MessagesBlueprint") # 消息列表页面 -@messages_bp.route('/') +@messages_bp.route('/messages') @login_required def message_list_page(): """消息列表页面""" diff --git a/admin/dashboard/blueprints/robot.py b/admin/dashboard/blueprints/robot.py index dc42f01..488bd5c 100644 --- a/admin/dashboard/blueprints/robot.py +++ b/admin/dashboard/blueprints/robot.py @@ -9,7 +9,7 @@ robot_bp = Blueprint('robot', __name__, url_prefix='/robot') logger = logging.getLogger("RobotBlueprint") # 机器人管理页面 -@robot_bp.route('/') +@robot_bp.route('/robot_management') @login_required def robot_management(): return render_template('robot_management.html') diff --git a/admin/dashboard/server.py b/admin/dashboard/server.py index 702cdbf..05f8c15 100644 --- a/admin/dashboard/server.py +++ b/admin/dashboard/server.py @@ -129,9 +129,9 @@ class DashboardServer: # 注册蓝图 app.register_blueprint(auth_bp) app.register_blueprint(main_bp) - app.register_blueprint(contacts_bp, url_prefix='/contacts') - app.register_blueprint(robot_bp, url_prefix='/robot') - app.register_blueprint(messages_bp, url_prefix='/messages') + app.register_blueprint(contacts_bp) + app.register_blueprint(robot_bp) + app.register_blueprint(messages_bp) app.register_blueprint(stats_bp) app.register_blueprint(system_bp)