fix: update QR code download filename format to use slug instead of full URL
This commit is contained in:
parent
c4626101d5
commit
c1c84ab0f9
1 changed files with 2 additions and 1 deletions
|
|
@ -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}`,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue