Skip to content

Commit

Permalink
fix(qrcode-stream): use async component
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Oct 13, 2022
1 parent 4884a57 commit 583da2f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nuxt/pages/event/[username]/[event_name]/attendance/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,9 @@ useHeadDefault(title.value)
export default {
name: 'IndexPage',
components: {
QrCodeStream: () => {
if (process.server) return
return import('vue-qrcode-reader/src/components/QrcodeStream.vue')
},
QrCodeStream: defineAsyncComponent(
() => import('vue-qrcode-reader/src/components/QrcodeStream.vue')
),
},
}
</script>
Expand Down

0 comments on commit 583da2f

Please sign in to comment.