二维码显示失效时间
This commit is contained in:
parent
acd44e1e44
commit
67c166f52e
|
|
@ -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`}>
|
||||
该二维码
|
||||
|
|
|
|||
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Reference in New Issue