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

bug fixes

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