From 3eda96f20b0f2f672418fefc69741bedcc4de194 Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Wed, 16 Oct 2024 17:26:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(Footer):=20=E5=BA=95=E9=83=A8=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/QRCodeDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/QRCodeDialog.tsx b/src/components/common/QRCodeDialog.tsx index 1d618bb..12861dd 100644 --- a/src/components/common/QRCodeDialog.tsx +++ b/src/components/common/QRCodeDialog.tsx @@ -16,7 +16,7 @@ export default function QRCodeDialog({ }: { header: string; url: string; - img: string; + img?: string; children: React.ReactNode; subHeader?: string; buttonText?: string; @@ -37,7 +37,7 @@ export default function QRCodeDialog({ {/* 二维码 */}
- {!!img && } + {!!(img || url) && }
{/* 按钮 */}