diff --git a/app/routes/settings.py b/app/routes/settings.py index 57353d1..fe4b74d 100644 --- a/app/routes/settings.py +++ b/app/routes/settings.py @@ -10,11 +10,11 @@ from app.config import load_api_config, save_api_config from app.routes.auth import login_required_json, admin_required -@main_bp.route("/settings") +@main_bp.route("/problems") @login_required_json def settings(): """问题配置页面 - 所有登录用户可访问""" - return render_template("settings.html", active_nav="settings") + return render_template("problems.html", active_nav="problems") @main_bp.route("/api-settings") diff --git a/app/templates/base.html b/app/templates/base.html index 87d7d2d..dc9d975 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -95,7 +95,7 @@ 方案管理 - + 问题配置 diff --git a/app/templates/goals.html b/app/templates/goals.html index 42d861e..7e7c259 100644 --- a/app/templates/goals.html +++ b/app/templates/goals.html @@ -265,7 +265,6 @@ async function saveGoal() { }); const result = await res.json(); - console.log('Save result:', result); if (res.ok) { bootstrap.Modal.getInstance(document.getElementById('goalModal')).hide(); diff --git a/app/templates/settings.html b/app/templates/problems.html similarity index 100% rename from app/templates/settings.html rename to app/templates/problems.html