dev01 1 yıl önce
ebeveyn
işleme
dee96e8a3a
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      src/pages/punchClock/punchClocks.jsx

+ 4 - 0
src/pages/punchClock/punchClocks.jsx

@@ -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 })
       })
     })
   }