This commit is contained in:
tamaina 2025-08-25 21:09:40 +09:00
parent 1dbc5fac84
commit 079f0dfd70
1 changed files with 35 additions and 35 deletions

View File

@ -89,8 +89,7 @@ function share() {
}); });
} }
onMounted(() => { const qrCodeInstance = new QRCodeStyling({
const qrCodeInstance = new QRCodeStyling({
width: 512, width: 512,
height: 512, height: 512,
margin: 40, margin: 40,
@ -124,8 +123,9 @@ onMounted(() => {
backgroundOptions: { backgroundOptions: {
color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 97)`).toRgbString(), color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 97)`).toRgbString(),
}, },
}); });
onMounted(() => {
if (qrCodeEl.value != null) { if (qrCodeEl.value != null) {
qrCodeInstance.append(qrCodeEl.value); qrCodeInstance.append(qrCodeEl.value);
} }