From cb232e807e5de213faf992bfa88c35e9f94c6a9a Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Jan 2026 19:35:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=AD=E6=96=87=E8=AF=AD=E8=A8=80=E5=92=8C?= =?UTF-8?q?=E6=B7=B1=E8=89=B2=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Analytics.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/views/Analytics.vue b/frontend/src/views/Analytics.vue index 54d8689..9e4dda6 100644 --- a/frontend/src/views/Analytics.vue +++ b/frontend/src/views/Analytics.vue @@ -11,6 +11,8 @@ :placeholder="'选择月份'" format="YYYY年MM月" valueFormat="YYYY-MM" + :locale="locale" + :popup-class-name="'dark-date-picker'" @change="handleMonthChange" class="month-picker" :allowClear="true" @@ -524,8 +526,16 @@ import { message } from 'ant-design-vue' import * as echarts from 'echarts' import Icon from '@/components/Icon.vue' import dayjs, { Dayjs } from 'dayjs' +import 'dayjs/locale/zh-cn' +import zhCN from 'ant-design-vue/es/locale/zh_CN' import { fetchDepartmentOverview } from '@/api/department' +// 设置 dayjs 中文 +dayjs.locale('zh-cn') + +// Ant Design 中文配置 +const locale = zhCN + const router = useRouter() const loading = ref(false) const selectedMonth = ref(null)