diff --git a/frontend/src/views/mobile/DailyNoteForm.vue b/frontend/src/views/mobile/DailyNoteForm.vue index e4c9b9f..d9ca697 100644 --- a/frontend/src/views/mobile/DailyNoteForm.vue +++ b/frontend/src/views/mobile/DailyNoteForm.vue @@ -60,6 +60,7 @@ onMounted(async () => { }) async function handleSubmit() { + if (!form.value.note_date) { ElMessage.warning('请选择日期'); return } if (!form.value.content.trim()) { ElMessage.warning('请输入纪要内容'); return } submitLoading.value = true try { @@ -108,7 +109,7 @@ async function handleDelete() { @@ -158,7 +159,7 @@ async function handleDelete() { @@ -288,4 +289,5 @@ async function handleDelete() { animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } +.required-star { color: var(--vermilion); font-weight: 700; } diff --git a/frontend/src/views/mobile/KeyVisitForm.vue b/frontend/src/views/mobile/KeyVisitForm.vue index 477c1b0..251db30 100644 --- a/frontend/src/views/mobile/KeyVisitForm.vue +++ b/frontend/src/views/mobile/KeyVisitForm.vue @@ -137,7 +137,7 @@ async function handleDelete() { - +