Next13-App Routes-踩坑记录 初心_hhhhhhh 2023-09-15 89 阅读1分钟 1. next13中全局汉化antd中日期组件 根layout中引入以下配置并导出,后续的路由页面直接使用这里导出的dayjs!如果重新使用import dayjs from 'dayjs'导入,则日期组件汉化会失败 import dayjs from 'dayjs' import 'dayjs/locale/zh-cn' dayjs.locale('zh-cn') export { dayjs }