Commit 7521d0ee by FE

add notice

parent 07774ad3
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,13 +14,13 @@ class CourseItem extends Component { ...@@ -14,13 +14,13 @@ class CourseItem extends Component {
this.startCountDown(time); this.startCountDown(time);
} }
componentWillReceiveProps(nextProps) { // componentWillReceiveProps(nextProps) {
const { time: newTime } = nextProps // const { time: newTime } = nextProps
const { time: oldTime } = this.props; // const { time: oldTime } = this.props;
if(oldTime != newTime) { // if(oldTime != newTime) {
this.startCountDown(newTime); // this.startCountDown(newTime);
} // }
} // }
startCountDown = (time) => { startCountDown = (time) => {
if(time) { if(time) {
......
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