chore: remove date mixins
This commit is contained in:
parent
332acf012c
commit
b0ee316a26
14 changed files with 43 additions and 24 deletions
|
|
@ -188,6 +188,7 @@ import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
|||
import BaseButton from '@/components/base/BaseButton.vue'
|
||||
|
||||
import {colorIsDark} from '@/helpers/color/colorIsDark'
|
||||
import {formatDate} from '@/helpers/time/formatDate'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'GanttChart',
|
||||
|
|
@ -439,7 +440,7 @@ export default defineComponent({
|
|||
formatMonthAndYear(year, month) {
|
||||
month = month < 10 ? '0' + month : month
|
||||
const date = new Date(`${year}-${month}-01`)
|
||||
return this.format(date, 'MMMM, yyyy')
|
||||
return formatDate(date, 'MMMM, yyyy')
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Reference in a new issue