Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshenghang committed Jan 7, 2025
1 parent c09a158 commit 8a8b32b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { h, reactive, ref } from 'vue'
import { endOfToday, format, startOfToday } from 'date-fns'
import { endOfToday, format, startOfToday, subDays } from 'date-fns'
import { useTableLink, useTableOperation } from '@/hooks'
import {
AlignLeftOutlined,
Expand Down Expand Up @@ -85,7 +85,7 @@ export function useSyncTask(syncTaskType = 'BATCH') {
checkedRowKeys: [] as Array<RowKey>,
buttonList: [],
datePickerRange: [
format(startOfToday(), 'yyyy-MM-dd HH:mm:ss'),
format(subDays(startOfToday(), 30), 'yyyy-MM-dd HH:mm:ss'),
format(endOfToday(), 'yyyy-MM-dd HH:mm:ss')
]
})
Expand Down Expand Up @@ -295,7 +295,7 @@ export function useSyncTask(syncTaskType = 'BATCH') {
variables.host = ''
variables.stateType = null
variables.datePickerRange = [
format(startOfToday(), 'yyyy-MM-dd HH:mm:ss'),
format(subDays(startOfToday(), 30), 'yyyy-MM-dd HH:mm:ss'),
format(endOfToday(), 'yyyy-MM-dd HH:mm:ss')
]
}
Expand Down

0 comments on commit 8a8b32b

Please sign in to comment.