moment.js:105 Uncaught TypeError: date.clone is not a function

  • 在使用Antd的表单动态填充的方法 setFieldsValue 时出现的报错,是因为时间选择器回显出现了问题,当前的格式不支持显示,需要使用momentjs转换为正确的回显格式
 import moment from 'moment';
 //处理数据
 moment(selectedRow.implementationDate)
posted @ 2022-11-07 11:40  w1ndz  阅读(517)  评论(0)    收藏  举报