[update] 修改bug78359

This commit is contained in:
lideqin
2023-11-10 16:53:16 +08:00
parent 0c4597b762
commit 4be6d171c4
@@ -184,8 +184,9 @@ export default {
methods: {
isRed (reviewDate) {
const reviewDateDate = new Date(Date.parse(reviewDate))
const currentDate = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate()
const reviewDatePlusSeven = reviewDateDate.setDate(reviewDateDate.getDate() + 7)
return new Date(Date.parse(reviewDate)) < new Date() && new Date() < reviewDatePlusSeven
return new Date(Date.parse(reviewDate)) < new Date(Date.parse(currentDate)) && new Date(Date.parse(currentDate)) < reviewDatePlusSeven
},
// 发布日期改变
publishDateChange (val) {