From 6e8f27b809b6387e80453fc271b39bdcb8656951 Mon Sep 17 00:00:00 2001 From: sophie <16087569+sophie_liang@user.noreply.gitee.com> Date: Mon, 13 Apr 2026 15:19:45 +0800 Subject: [PATCH] fix build error --- frontend/src/i18n.ts | 10 ++++++++++ frontend/src/views/AdminView.vue | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts index 96cbdcb2..34ed3309 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n.ts @@ -1393,6 +1393,11 @@ const messages = { usernameRequired: '請輸入用戶名', loginRequired: '請先登錄後再進入對話', requestFailed: '登錄請求失敗', + forgotPassword: '忘記密碼?', + rememberMe: '30天內免登入', + announcements: '公告', + forgotPasswordDesc: '輸入您的郵箱以重設密碼', + findPassword: '找回密碼', wecomLogin: '企業微信登錄', wecomConnecting: '正在連接企業微信...' }, @@ -2051,6 +2056,11 @@ const messages = { usernameRequired: 'กรุณากรอกชื่อผู้ใช้', loginRequired: 'กรุณาเข้าสู่ระบบก่อนเริ่มการสนทนา', requestFailed: 'คำขอเข้าสู่ระบบล้มเหลว', + forgotPassword: 'ลืมรหัสผ่าน?', + rememberMe: 'จดจำการเข้าสู่ระบบ 30 วัน', + announcements: 'ประกาศ', + forgotPasswordDesc: 'กรอกอีเมลเพื่อรีเซ็ตรหัสผ่าน', + findPassword: 'ค้นหารหัสผ่าน', wecomLogin: 'เข้าสู่ระบบด้วย WeCom', wecomConnecting: 'กำลังเชื่อมต่อ WeCom...' }, diff --git a/frontend/src/views/AdminView.vue b/frontend/src/views/AdminView.vue index c52db531..73c100a7 100644 --- a/frontend/src/views/AdminView.vue +++ b/frontend/src/views/AdminView.vue @@ -17,7 +17,7 @@ import ThemeToggleButton from '../components/ThemeToggleButton.vue'; import { loadReportLayoutPref, saveReportLayoutPref } from '../composables/useReportLayoutStorage'; import { ArrowLeft, - Save, + // Save, Plus, Trash2, UserPlus, @@ -1032,9 +1032,9 @@ watch(activeModule, async (value) => { * saveConfig * 用途:目前仅作为“保存成功”提示,核心配置变更在具体操作时已写入后台 */ -const saveConfig = () => { - alert(t('admin.msg.allSaved')); -}; +// const saveConfig = () => { +// alert(t('admin.msg.allSaved')); +// }; const pendingUsers = computed(() => users.value.filter(u => u.status === 'pending')); const activeUsers = computed(() => users.value.filter(u => u.status !== 'pending'));