[update] 修改bug78359

This commit is contained in:
lideqin
2024-02-25 14:45:37 +08:00
parent 1c4f9522d6
commit 61cdc14972
@@ -182,10 +182,11 @@ export default {
}, },
methods: { methods: {
isRed (reviewDate) { isRed (reviewDate) {
const reviewDateDate = new Date(Date.parse(reviewDate)) // const reviewDateDate = new Date(Date.parse(reviewDate))
const currentDate = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate() const currentDate = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate()
const reviewDatePlusSeven = reviewDateDate.setDate(reviewDateDate.getDate() + 7) // const reviewDatePlusSeven = reviewDateDate.setDate(reviewDateDate.getDate() + 7)
return new Date(Date.parse(reviewDate)) < new Date(Date.parse(currentDate)) && new Date(Date.parse(currentDate)) <= reviewDatePlusSeven return new Date(Date.parse(reviewDate)) < new Date(Date.parse(currentDate))
// && new Date(Date.parse(currentDate)) <= reviewDatePlusSeven
}, },
// 发布日期改变 // 发布日期改变
publishDateChange (val) { publishDateChange (val) {