Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -413,14 +413,14 @@ const idcardBeginDate = ref(new Date()); | ... | @@ -413,14 +413,14 @@ const idcardBeginDate = ref(new Date()); |
| 413 | const idcardEndDate = ref(new Date()); | 413 | const idcardEndDate = ref(new Date()); |
| 414 | 414 | ||
| 415 | /** | 415 | /** |
| 416 | - * 日期选择器的最大日期(当天) | 416 | + * 日期选择器的最大日期(当前年份后80年) |
| 417 | */ | 417 | */ |
| 418 | -const maxYearDate = ref(new Date()); | 418 | +const currentYear = new Date().getFullYear(); |
| 419 | +const maxYearDate = ref(new Date(currentYear + 80, 11, 31)); // 80年后的12月31日 | ||
| 419 | 420 | ||
| 420 | /** | 421 | /** |
| 421 | * 日期选择器的最小日期(当前年份前80年) | 422 | * 日期选择器的最小日期(当前年份前80年) |
| 422 | */ | 423 | */ |
| 423 | -const currentYear = new Date().getFullYear(); | ||
| 424 | const minYearDate = ref(new Date(currentYear - 80, 0, 1)); // 80年前的1月1日 | 424 | const minYearDate = ref(new Date(currentYear - 80, 0, 1)); // 80年前的1月1日 |
| 425 | 425 | ||
| 426 | // 银行选择器当前选中的值 | 426 | // 银行选择器当前选中的值 | ... | ... |
-
Please register or login to post a comment