From bf1be1aa9fcd92d69536a7a76171591872d7daea Mon Sep 17 00:00:00 2001 From: mac Date: Mon, 27 Jul 2026 08:47:49 +0800 Subject: [PATCH] =?UTF-8?q?v2.1.10=20=E2=80=94=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=91=A8=E5=88=97=E8=A1=A8=E5=BC=BA=E5=88=B64=E5=91=A8?= =?UTF-8?q?=E5=A1=AB=E5=85=85=E9=80=BB=E8=BE=91=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E8=B7=A8=E6=9C=88=E8=99=9A=E5=91=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/app.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/static/app.js b/static/app.js index f3a738e..d48919e 100644 --- a/static/app.js +++ b/static/app.js @@ -169,12 +169,6 @@ weeks.push(fmtWeek(monday)); monday.setDate(monday.getDate() + 7); } - // 确保至少有4周显示 - while (weeks.length < 4) { - var w = fmtWeek(monday); - if (weeks.indexOf(w) < 0) weeks.push(w); - monday.setDate(monday.getDate() + 7); - } var todayWk = fmtWeek(new Date()); var today = new Date(); @@ -191,7 +185,6 @@ var sunday = new Date(monday); sunday.setDate(sunday.getDate() + 6); var dateRange = (monday.getMonth()+1) + '.' + monday.getDate() + ' - ' + sunday.getDate(); - var statusIcon = status === 'pass' ? '✓' : (status === 'fail' ? '✗' : '○'); var statusLabel = status === 'pass' ? '达标' : (status === 'fail' ? '未达标' : '未打卡'); wHtml += '
' + '
' +