Skip to content

Commit

Permalink
💄 只显示日期
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Dec 16, 2024
1 parent 664e87b commit e80fb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pageHome/ph-comp-calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const selectedItem = shallowRef<TGApp.App.Calendar.Item>(renderItems.value[0]);
onMounted(() => {
const dayNow = new Date().getDay() === 0 ? 7 : new Date().getDay();
const week = btnText.find((item) => item.week === dayNow) ?? { text: "周日", week: 7 };
dateNow.value = `${timestampToDate(new Date().getTime())} ${week.text}`;
dateNow.value = `${timestampToDate(new Date().getTime()).split(" ")[0]} ${week.text}`;
weekNow.value = dayNow;
btnNow.value = dayNow;
emits("success");
Expand Down

0 comments on commit e80fb19

Please sign in to comment.