Xiao_123 7 tháng trước cách đây
mục cha
commit
0a3b000000

+ 3 - 1
src/views/recruit/enterprise/interviewManagement/components/invite.vue

@@ -34,7 +34,9 @@ const props = defineProps({
 
 // 过去的日期不可选
 const disabledDates = (date) => {
-  return date.getTime() < new Date().getTime()
+  const currentDate = new Date()
+  currentDate.setDate(currentDate.getDate() - 1)
+  return date.getTime() < currentDate.getTime()
 }
 
 const CtFormRef = ref()

+ 3 - 1
src/views/recruit/enterprise/personnelManagement/components/invite.vue

@@ -30,7 +30,9 @@ const props = defineProps({
 
 // 过去的日期不可选
 const disabledDates = (date) => {
-  return date.getTime() < new Date().getTime()
+  const currentDate = new Date()
+  currentDate.setDate(currentDate.getDate() - 1)
+  return date.getTime() < currentDate.getTime()
 }
 
 const CtFormRef = ref()

+ 3 - 1
src/views/recruit/enterprise/resume/components/invite.vue

@@ -32,7 +32,9 @@ const props = defineProps({
 
 // 过去的日期不可选
 const disabledDates = (date) => {
-  return date.getTime() < new Date().getTime()
+  const currentDate = new Date()
+  currentDate.setDate(currentDate.getDate() - 1)
+  return date.getTime() < currentDate.getTime()
 }
 
 const CtFormRef = ref()