nieyuge 1 month ago
parent
commit
f06b8b6254
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/account/dialog/qrcode.tsx

+ 2 - 1
src/views/account/dialog/qrcode.tsx

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