fix(Footer): 底部二维码

main
mackt 4 weeks ago
parent fa7b900468
commit 3eda96f20b

@ -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({
{/* 二维码 */}
<div className="w-[200px] h-[200px] mt-[24px] bg-[#fff] rounded-[6px] overflow-hidden">
{!!img && <Image width={200} height={200} src={img} alt="" />}
{!!(img || url) && <Image width={200} height={200} src={img || url} alt="" />}
</div>
{/* 按钮 */}

Loading…
Cancel
Save