[TQRCode] URL 인코딩
This commit is contained in:
@@ -34,10 +34,11 @@ export default function TQRCode({
|
||||
}
|
||||
|
||||
// nowMenu 데이터를 Base64로 인코딩
|
||||
const encodedNowMenu = btoa(nowMenu);
|
||||
const encodedNowMenu = encodeURIComponent(nowMenu);
|
||||
const encodeEntryMenu = encodeURIComponent(entryMenu);
|
||||
|
||||
const qrcode = new window.QRCode(qrcodeRef.current, {
|
||||
text: `${text}&entryMenu=${entryMenu}&nowMenu=${encodedNowMenu}&idx=${deviceInfo.dvcIndex}`,
|
||||
text: `${text}&entryMenu=${encodeEntryMenu}&nowMenu=${encodedNowMenu}&idx=${deviceInfo.dvcIndex}`,
|
||||
width: scaleW(width),
|
||||
height: scaleH(height),
|
||||
correctLevel: window.QRCode.CorrectLevel.L,
|
||||
|
||||
Reference in New Issue
Block a user