From 8c0e11b0a83f19228f0027ed4a636cf47f9b3211 Mon Sep 17 00:00:00 2001 From: kangwenjing <1138819403@qq.com> Date: Mon, 13 Apr 2026 15:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1=E5=A4=87=E6=B3=A8=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Work.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Work.tsx b/frontend/src/pages/Work.tsx index e38f6c65..94a39cf7 100644 --- a/frontend/src/pages/Work.tsx +++ b/frontend/src/pages/Work.tsx @@ -1059,6 +1059,9 @@ export default function Work() { if (!checkInPhotoUrls.length) { throw new Error("请先上传现场照片"); } + if (!checkInForm.remark?.trim()) { + throw new Error("请填写打卡备注"); + } await saveWorkCheckIn({ locationText: checkInForm.locationText.trim(), remark: checkInForm.remark?.trim() || undefined, @@ -2559,7 +2562,7 @@ function CheckInPanel({
-

打卡备注 (选填)

+

打卡备注 (必填)