File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ui/src/views/plugins/quota Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ import { api } from '@/api'
9898import { ref , reactive , toRaw } from ' vue'
9999import TooltipLabel from ' @/components/widgets/TooltipLabel'
100100import { getQuotaTypes } from ' @/utils/quota'
101- import { dayjs , parseDayJsObject } from ' @/utils/date'
101+ import { dayjs , isDayJsObjectToday , parseDayJsObject } from ' @/utils/date'
102102import { mixinForm } from ' @/utils/mixin'
103103
104104export default {
@@ -145,7 +145,7 @@ export default {
145145 values .usageType = values .usageType .split (' -' )[0 ]
146146
147147 if (values .startDate ) {
148- values .startDate = parseDayJsObject ({ value: values .startDate , format: ' YYYY-MM-DD' })
148+ values .startDate = isDayJsObjectToday ( values . startDate ) ? null : parseDayJsObject ({ value: values .startDate , format: ' YYYY-MM-DD' })
149149 }
150150
151151 if (values .endDate ) {
You can’t perform that action at this time.
0 commit comments