|
|
@@ -5,7 +5,6 @@ import { dayjsFormat } from '@/utils/utils'
|
|
|
import { ModalForm } from '@ant-design/pro-form'
|
|
|
import { Plus } from '@icon-park/react'
|
|
|
import dayjs from 'dayjs'
|
|
|
-import moment from 'moment'
|
|
|
|
|
|
const AddRecord = props => {
|
|
|
const formRef = useRef(null)
|
|
|
@@ -16,7 +15,7 @@ const AddRecord = props => {
|
|
|
setShowExtraItem(value)
|
|
|
}
|
|
|
const disabledDate = current => {
|
|
|
- return current && current < moment().endOf('day')
|
|
|
+ return current && current < dayjs().endOf('day')
|
|
|
}
|
|
|
return (
|
|
|
<ModalForm
|