diff --git a/ai_knowledge_base_v2/apps/admin-web/src/App.vue b/ai_knowledge_base_v2/apps/admin-web/src/App.vue
index ca63490..2634f40 100644
--- a/ai_knowledge_base_v2/apps/admin-web/src/App.vue
+++ b/ai_knowledge_base_v2/apps/admin-web/src/App.vue
@@ -285,13 +285,17 @@ async function createStudent() {
nickname: studentForm.nickname || null,
status: studentForm.status,
dailyChatLimit: studentForm.dailyChatLimit,
- expiredAt: studentForm.expiredAt || null,
+ expiredAt: toExpiryDateTime(studentForm.expiredAt),
});
ElMessage.success("学员已添加");
resetStudentForm();
await loadCurrentMenu();
}
+function toExpiryDateTime(date: string) {
+ return date ? `${date}T23:59:59` : null;
+}
+
function handleStudentImportFile(event: Event) {
const input = event.target as HTMLInputElement;
studentImportFile.value = input.files?.[0] ?? null;
@@ -840,12 +844,10 @@ function formatRecordDateTime(value: string, boundary: "start" | "end") {