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({
-

打卡备注 (选填)

+

打卡备注 (必填)