diff --git a/components/dashboard/links/QRCode.vue b/components/dashboard/links/QRCode.vue index cdf8559..437561e 100644 --- a/components/dashboard/links/QRCode.vue +++ b/components/dashboard/links/QRCode.vue @@ -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}`, }) }