From 70be6ab65728cfe5a0034a2e43e0f6dbf840872f Mon Sep 17 00:00:00 2001
From: Nelson <1475262689@qq.com>
Date: Sat, 11 Jul 2026 17:05:31 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E6=9C=89=E6=95=88=E6=9C=9F=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E6=8E=A7=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ai_knowledge_base_v2/apps/admin-web/src/App.vue | 16 +++++++++-------
.../apps/admin-web/src/styles.css | 7 +++++--
2 files changed, 14 insertions(+), 9 deletions(-)
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") {