feat:【mall 商城】商城首页的迁移【antd】45%:member-funnel-card.vue 修复缺陷

This commit is contained in:
YunaiV
2025-10-19 15:37:48 +08:00
parent af61726e0e
commit 1628ab8cb5
7 changed files with 65 additions and 105 deletions

View File

@@ -1,7 +1,7 @@
import dayjs from 'dayjs';
import dayjs, { Dayjs } from 'dayjs';
export function formatDate(
time: Date | number | string | undefined,
time: Date | Dayjs | number | string | undefined,
format = 'YYYY-MM-DD',
) {
if (!time) {
@@ -19,7 +19,9 @@ export function formatDate(
}
}
export function formatDateTime(time: Date | number | string | undefined) {
export function formatDateTime(
time: Date | Dayjs | number | string | undefined,
) {
if (!time) {
return time;
}