diff --git a/src/components/pageHome/ph-comp-calendar.vue b/src/components/pageHome/ph-comp-calendar.vue index e755a20b..e9c6cae6 100644 --- a/src/components/pageHome/ph-comp-calendar.vue +++ b/src/components/pageHome/ph-comp-calendar.vue @@ -81,7 +81,7 @@ const selectedItem = shallowRef(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");