refactor: split into component and use global app store
This commit is contained in:
10
components/body/QRCodePreview.vue
Normal file
10
components/body/QRCodePreview.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
const app = useAppStore();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<img
|
||||
:src="app.qrCode"
|
||||
class="max-h-[375px] aspect-square border border-gray-100 dark:border-gray-800"
|
||||
/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user