fix: update QR code download filename format to use slug instead of full URL

This commit is contained in:
MinerAle 2025-02-24 21:05:56 +01:00
parent c4626101d5
commit c1c84ab0f9

View file

@ -71,9 +71,10 @@ const qrCode = new QRCodeStyling(options)
const qrCodeEl = ref(null)
function downloadQRCode() {
const slug = props.data.split('/').pop()
qrCode.download({
extension: 'png',
name: `qr-${props.data}`,
name: `qr_${slug}`,
})
}