Skip to content

Commit c335015

Browse files
committed
Update functions params
1 parent abeba11 commit c335015

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
<br />
3131
</template>
3232
<template #actions>
33-
<p class="text-[16px] text-blue-400" @click="downloadSVG(newQrCodeImg)">
33+
<p class="text-[16px] text-blue-400" @click="downloadSVG(newQrCodeImg || require('../assets/imgs/default.png'))">
3434
SVG
3535
</p>
36-
<p class="text-[16px] text-blue-400" @click="downloadPNG(newQrCodeImg)">
36+
<p class="text-[16px] text-blue-400" @click="downloadPNG(newQrCodeImg || require('../assets/imgs/default.png'))">
3737
PNG
3838
</p>
39-
<p class="text-[16px] text-blue-400" @click="downloadJPG(newQrCodeImg)">
39+
<p class="text-[16px] text-blue-400" @click="downloadJPG(newQrCodeImg || require('../assets/imgs/default.png'))">
4040
JPG
4141
</p>
4242
</template>

0 commit comments

Comments
 (0)