Skip to content

Commit

Permalink
[Improve] Modify the default number of days for query tasks. (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshenghang authored Jan 9, 2025
1 parent fcd2353 commit 7084272
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 7084272

Please sign in to comment.