提交 f0c9f084 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 9cf444d5
......@@ -214,7 +214,7 @@ export default {
}
// 大于开始时间,小于结束时间
const endTime = +new Date(this.deadline)
const currentTime = this.serverTime
const currentTime = +new Date(this.serverTime)
return currentTime < endTime
},
hasScore() {
......@@ -226,7 +226,7 @@ export default {
if (!this.detail.id) {
return false
}
const currentTime = this.serverTime
const currentTime = +new Date(this.serverTime)
const startTime = +new Date(this.commentStartTime)
return this.hasComment && currentTime >= startTime && this.detail.status !== 1
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论