From 7507de7ed2358333896db05933db775f27e25d5b Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 30 Oct 2024 00:56:24 +0800 Subject: [PATCH] update --- web/admin/logs/__init__.py | 1 + web/admin/soft/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/web/admin/logs/__init__.py b/web/admin/logs/__init__.py index fa210411b..92d13965c 100644 --- a/web/admin/logs/__init__.py +++ b/web/admin/logs/__init__.py @@ -21,6 +21,7 @@ import utils.adult_log as adult_log # 日志页面 blueprint = Blueprint('logs', __name__, url_prefix='/logs', template_folder='../../templates') @blueprint.route('/index', endpoint='index') +@panel_login_required def index(): return render_template('default/logs.html') diff --git a/web/admin/soft/__init__.py b/web/admin/soft/__init__.py index b0b73c465..78569ce25 100644 --- a/web/admin/soft/__init__.py +++ b/web/admin/soft/__init__.py @@ -15,5 +15,6 @@ from admin.user_login_check import panel_login_required blueprint = Blueprint('soft', __name__, url_prefix='/soft', template_folder='../../templates/default') @blueprint.route('/index', endpoint='index') +@panel_login_required def index(): return render_template('soft.html') \ No newline at end of file