diff --git a/src/app/components/Option/components/LimitOption/index.tsx b/src/app/components/Option/components/LimitOption/index.tsx index d25a57db..ca5e5194 100644 --- a/src/app/components/Option/components/LimitOption/index.tsx +++ b/src/app/components/Option/components/LimitOption/index.tsx @@ -10,7 +10,7 @@ import { locale } from "@i18n" import optionService from "@service/option-service" import { defaultDailyLimit } from "@util/constant/option" import { ElDivider, ElInput, ElOption, ElSelect } from "element-plus" -import { defineComponent, reactive, unref, UnwrapRef, h, ref, Ref } from "vue" +import { defineComponent, reactive, unref, UnwrapRef, ref, Ref } from "vue" import { renderOptionItem } from "../../common" import "./limit-option.sass" import { judgeVerificationRequired, processVerification } from "@app/util/limit" diff --git a/src/app/util/limit.tsx b/src/app/util/limit.tsx index 72999ff7..7e98b1ad 100644 --- a/src/app/util/limit.tsx +++ b/src/app/util/limit.tsx @@ -22,8 +22,7 @@ export async function judgeVerificationRequired(item: timer.limit.Item): Promise // Period if (periods?.length) { const idx = dateMinute2Idx(new Date()) - const hitPeriod = periods?.find(([s, e]) => s <= idx && e >= idx) - console.log(idx, periods, hitPeriod) + const hitPeriod = periods?.some(([s, e]) => s <= idx && e >= idx) if (hitPeriod) return true } // Visit