Commit 79c62416 authored by haiyoucuv's avatar haiyoucuv

music

parent 152efdf0
......@@ -157,11 +157,11 @@ const store = makeAutoObservable({
checkActTime(type) {
const { actStartTimestamp, currentTimestamp, actEndTimestamp } = this.setIndex;
if (currentTimestamp < actStartTimestamp && !["rule", "prize"].includes(type)) {
Toast("活动未开始");
Toast("活动未开始", 2000, {hideOthers: true});
return false;
}
if (currentTimestamp > actEndTimestamp && !["rule", "prize"].includes(type)) {
Toast("活动已结束");
Toast("活动已结束", 2000, {hideOthers: true});
return false;
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment