[TQRCode] 시나리오대로 변경 (추가적으로 시나리오 변경 대기중)

This commit is contained in:
고동영
2024-06-04 16:50:15 +09:00
parent b51bb2f99e
commit d6f4ecdc72
6 changed files with 16 additions and 23 deletions

View File

@@ -31,7 +31,9 @@ export default function TQRCode({ text, menu, width = "128", height = "128" }) {
}
const qrcode = new window.QRCode(qrcodeRef.current, {
text: `${text}&nowMenu=${menu}&dvcIndex=${deviceInfo.dvcIndex}`,
text: menu
? `${text}&nowMenu=${menu}&dvcIndex=${deviceInfo.dvcIndex}`
: text,
width: scaleW(width),
height: scaleH(height),
});