Commit bda380af by fengzhaoyu

fix:时间格式不正确不解析

parent 98d34072
......@@ -188,10 +188,10 @@ Component({
const min = endDate.getMinutes();
endDate.setMinutes(min + 30);
// 赋值
if (this.props.startTime) {
if (this.props.startTime && new Date(this.props.startTime).getFullYear()) {
startDate = new Date(this.props.startTime);
}
if (this.props.endTime) {
if (this.props.endTime && new Date(this.props.endTime).getFullYear()) {
endDate = new Date(this.props.endTime);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment