Uncaught TypeError: date.locale is not a function

Uncaught TypeError: date.locale is not a function
以下代码块报错

import { Drawer, Form, Input, InputNumber, DatePicker } from 'antd';
        <Form.Item
          label='修改时间'
          name='updateTime'
          rules={[
            {required: true, message: '请输入修改时间!'},
          ]}
        >
          <DatePicker
            disabled
            showTime
            placeholder='请输入修改时间!'
          />
        </Form.Item>

把该字段的处置使用moment处理下

moment(record.createTime)

你可能感兴趣的:(bug,javascript,开发语言,reactjs)