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)