二维码显示失效时间

This commit is contained in:
wangwenchen 2024-03-22 10:26:43 +08:00
parent acd44e1e44
commit 67c166f52e
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ function QrCode(props) {
}
else {
const diff2 = dayjs(expiresAt).diff(dayjs(), 'minutes');
const expiresAtStr = dayjs(expiresAt).format('HH:mm');
const expiresAtStr = dayjs(expiresAt).format('YYYY年MM月DD日 HH:mm');
if (diff2 > 0) {
V = (<span className={`${prefixCls}-qrCodeBox_caption`}>
该二维码

View File

@ -59,7 +59,7 @@ function QrCode(props: IQrCodeProps) {
);
} else {
const diff2 = dayjs(expiresAt).diff(dayjs(), 'minutes');
const expiresAtStr = dayjs(expiresAt).format('HH:mm');
const expiresAtStr = dayjs(expiresAt).format('YYYY年MM月DD日 HH:mm');
if (diff2 > 0) {
V = (