fix: 统计分析,按日查询默认改为最近30天。

This commit is contained in:
tianyongbao
2024-05-24 17:24:45 +08:00
parent 63270494d7
commit cd9bbc3d0e
4 changed files with 10 additions and 10 deletions

View File

@@ -327,7 +327,7 @@ function resetQuery() {
queryParams.value.id = null
const today = new Date()
const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
const start = dayjs(end).add(-6, 'day')
const start = dayjs(end).add(-30, 'day')
queryParams.value.time = [start, end]
total.value = 0
handleQuery()