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();
}