From 66451c20062a0fafc6eec992cda1f0ab7c108789 Mon Sep 17 00:00:00 2001 From: hmo Date: Thu, 23 Apr 2026 22:29:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20settings=E9=A1=B5=E9=9D=A2=E6=94=B9?= =?UTF-8?q?=E5=90=8D=E4=B8=BAproblems=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes/settings.py | 4 ++-- app/templates/base.html | 2 +- app/templates/goals.html | 1 - app/templates/{settings.html => problems.html} | 0 4 files changed, 3 insertions(+), 4 deletions(-) rename app/templates/{settings.html => problems.html} (100%) 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