Commit 2b3cc3df authored by Jiawen Lyu's avatar Jiawen Lyu

delete comments

parent 816f48b4
......@@ -79,19 +79,13 @@ export default class Scheduler extends Component {
}
shouldComponentUpdate(nextProps) {
console.log("logins", nextProps.logins)
console.log("events", nextProps.events)
console.log("一样吗?", this.props.events.length !== nextProps.events.length)
return this.props.events.length !== nextProps.events.length;
}
componentDidUpdate() {
console.log("hei")
const { events, logins } = this.props
scheduler.init(this.schedulerContainer, new Date(2020, 5, 10));
scheduler.clearAll();
console.log("要更新的账号", logins)
console.log("要更新的events", events)
scheduler.parse(events);
changeColorForEachStudent(events, logins)
}
......
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