|
@@ -75,7 +75,10 @@ class PunchClocks extends Component {
|
|
|
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
componentWillMount() {
|
|
|
+ const { year, month } = this.state
|
|
|
+
|
|
|
this.nowTime = setInterval(() => {
|
|
|
this.setState({
|
|
|
nowTime: dayjs().format('HH:mm:ss')
|
|
@@ -87,6 +90,7 @@ class PunchClocks extends Component {
|
|
|
data: arg
|
|
|
}, () => {
|
|
|
this.onmyDuration()
|
|
|
+ !!arg.id && this.onMyDurationMonth({ id: arg.id }, { year, month })
|
|
|
})
|
|
|
})
|
|
|
}
|