From 22143bad7857afc9e3cfa0ccf22b12c8894485cb Mon Sep 17 00:00:00 2001 From: hmo Date: Thu, 23 Apr 2026 22:20:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DJS=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/goals.html | 1 - app/templates/settings.html | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/templates/goals.html b/app/templates/goals.html index a98d09b..42d861e 100644 --- a/app/templates/goals.html +++ b/app/templates/goals.html @@ -242,7 +242,6 @@ function renderGoalCard(g) { `; } -} // 保存目标 async function saveGoal() { diff --git a/app/templates/settings.html b/app/templates/settings.html index 734da3f..fff97d2 100644 --- a/app/templates/settings.html +++ b/app/templates/settings.html @@ -265,16 +265,12 @@ function renderProblemCard(p) { `; } - document.querySelectorAll('.problem-item').forEach(item => { - item.style.display = item.dataset.name.includes(search) ? 'block' : 'none'; - }); -} // 新增 function showAddModal() { document.getElementById('newProblemId').value = ''; document.getElementById('newProblemName').value = ''; - document.getElementById('newProblemCategory').value = '技术类'; + document.getElementById('newProblemCategory').value = '综合'; new bootstrap.Modal(document.getElementById('addModal')).show(); }