fix: 重复dayjs导入问题

This commit is contained in:
TsMask committed 2023-11-09 09:38:58 +08:00
1 parent 72a6c78230
commit 12eeac3c11
2 files changed
+5 -3

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
// 依赖来源 https://github.com/iamkun/dayjs
import dayjs from 'dayjs';
// 导入本地化语言并设为默认使用
import('dayjs/locale/zh-cn');
dayjs.locale('zh-cn');
// 导入本地化语言并设为默认使用,只需要全局有引入就行
// import('dayjs/locale/zh-cn');
// dayjs.locale('zh-cn');
/**年 列如:2022 */
export const YYYY = 'YYYY';