[update] 修改bug78359
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user