Przeglądaj źródła

非公出打卡去除时间限制

dev01 1 tydzień temu
rodzic
commit
44ef3d4754
1 zmienionych plików z 1 dodań i 1 usunięć
  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;