|
@@ -5,6 +5,7 @@ import { qwGetQrCode, qwCheckLogin, qwCheckQRCode } from '@src/http/api';
|
|
|
|
|
|
interface QrCodeData {
|
|
interface QrCodeData {
|
|
qrcode: string;
|
|
qrcode: string;
|
|
|
|
+ qrcode_data: string;
|
|
uuid: string;
|
|
uuid: string;
|
|
ttl: number;
|
|
ttl: number;
|
|
key: string;
|
|
key: string;
|
|
@@ -266,7 +267,7 @@ const QrCodeModal: React.FC<QrCodeModalProps> = ({
|
|
) : qrCodeData && (
|
|
) : qrCodeData && (
|
|
<div className="flex flex-col items-center">
|
|
<div className="flex flex-col items-center">
|
|
<Image
|
|
<Image
|
|
- src={qrCodeData.qrcode}
|
|
|
|
|
|
+ src={'data:image/jpeg;base64,' + qrCodeData.qrcode_data}
|
|
alt="二维码"
|
|
alt="二维码"
|
|
width={200}
|
|
width={200}
|
|
preview={false}
|
|
preview={false}
|