From 150bb2af7cb70e1f2847e0942a5a7a8d2b4d4856 Mon Sep 17 00:00:00 2001 From: oiov Date: Tue, 6 May 2025 19:44:41 +0800 Subject: [PATCH] fixup error qrcode --- lib/qr/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/qr/index.tsx b/lib/qr/index.tsx index 8aab25f..5743c95 100644 --- a/lib/qr/index.tsx +++ b/lib/qr/index.tsx @@ -342,7 +342,7 @@ export function getQRData({ hideLogo, logo, margin, - size, + size = 600, level, }: { url: string; @@ -365,8 +365,8 @@ export function getQRData({ ...(!hideLogo && { imageSettings: { src: logo || WRDO_QR_LOGO, - height: 256, - width: 256, + height: size / 4, + width: size / 4, excavate: true, }, }),