소스 검색

非公出打卡去除时间限制

dev01 1 주 전
부모
커밋
44ef3d4754
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/pages/punchClock/punchClocks.jsx

+ 1 - 1
src/pages/punchClock/punchClocks.jsx

@@ -262,7 +262,7 @@ class PunchClocks extends Component {
       Taro.showToast({ title: '定位错误,请联系管理员', icon: 'none' })
       return;
     }
-    if ([5, 6].indexOf(dtails.type) === -1 && dayjs().isBefore(dtails.releaseStarts) || dayjs().isAfter(dtails.releaseEnds)) {
+    if ([5, 6].indexOf(dtails.type) === -1 && (dayjs().isBefore(dtails.releaseStarts) || dayjs().isAfter(dtails.releaseEnds))) {
       Taro.hideLoading()
       Taro.showToast({ title: '当前时间不在打卡时间范围内,无法打卡', icon: 'none' })
       return;