feat: settings页面改名为problems,移除调试代码

This commit is contained in:
hmo
2026-04-23 22:29:51 +08:00
parent 22143bad78
commit 66451c2006
4 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -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")
+1 -1
View File
@@ -95,7 +95,7 @@
<a class="nav-link {% if active_nav == 'plans' %}active{% endif %}" href="/plans">
<i class="bi bi-clipboard-check"></i> 方案管理
</a>
<a class="nav-link {% if active_nav == 'settings' %}active{% endif %}" href="/settings">
<a class="nav-link {% if active_nav == 'problems' %}active{% endif %}" href="/problems">
<i class="bi bi-gear"></i> 问题配置
</a>
<a class="nav-link {% if active_nav == 'classes' %}active{% endif %}" href="/classes">
-1
View File
@@ -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();