feat(i18n): 添加中文本地化支持并优化界面显示

- 在 App.vue 中添加中文本地化配置
- 在 main.ts 中配置 dayjs 中文本地化
- 优化 TimeSetManager 组件的样式和布局
- 调整部分组件属性以适应中文环境
This commit is contained in:
2025-08-12 20:14:38 +08:00
parent c4dde028b2
commit bc6ae5562e
3 changed files with 83 additions and 42 deletions

View File

@@ -6,6 +6,12 @@ import LoggerPlugin, { logger } from '@/utils/logger'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
// 配置dayjs中文本地化
dayjs.locale('zh-cn')
// 配置API基础URL
OpenAPI.BASE = 'http://localhost:8000'