refactor
This commit is contained in:
parent
1dbc5fac84
commit
079f0dfd70
|
@ -89,8 +89,7 @@ function share() {
|
|||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
const qrCodeInstance = new QRCodeStyling({
|
||||
const qrCodeInstance = new QRCodeStyling({
|
||||
width: 512,
|
||||
height: 512,
|
||||
margin: 40,
|
||||
|
@ -124,8 +123,9 @@ onMounted(() => {
|
|||
backgroundOptions: {
|
||||
color: tinycolor(`hsl(${avatarHsl.value.h}, 100, 97)`).toRgbString(),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
if (qrCodeEl.value != null) {
|
||||
qrCodeInstance.append(qrCodeEl.value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue