修改文章管理默认天数

This commit is contained in:
jacky 2024-05-07 10:34:01 +08:00
parent abad8f8bba
commit 3cae4972ba
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ const formatTags = (tags) => {
const initSearchInfo = () => { const initSearchInfo = () => {
const endDate = new Date() const endDate = new Date()
const startDate = new Date(endDate.getTime() - 7 * 24 * 60 * 60 * 1000) const startDate = new Date(endDate.getTime() - 30 * 24 * 60 * 60 * 1000)
searchChannelId.value = '' searchChannelId.value = ''
searchCategoryId.value = '' searchCategoryId.value = ''

View File

@ -123,7 +123,7 @@ const formatStatus = (value) => {
const initSearchInfo = () => { const initSearchInfo = () => {
const endDate = new Date() const endDate = new Date()
const startDate = new Date(endDate.getTime() - 7 * 24 * 60 * 60 * 1000) const startDate = new Date(endDate.getTime() - 30 * 24 * 60 * 60 * 1000)
searchInfo.value = { searchInfo.value = {
dateRange: [ dateRange: [
formatTimeToStr(startDate, 'yyyy-MM-dd'), formatTimeToStr(startDate, 'yyyy-MM-dd'),