feat(i18n): 添加中文本地化支持并优化界面显示
- 在 App.vue 中添加中文本地化配置 - 在 main.ts 中配置 dayjs 中文本地化 - 优化 TimeSetManager 组件的样式和布局 - 调整部分组件属性以适应中文环境
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user