diff --git a/src/views/PickupView.vue b/src/views/PickupView.vue
index 7e7a066..4f7ce98 100644
--- a/src/views/PickupView.vue
+++ b/src/views/PickupView.vue
@@ -10,6 +10,20 @@ const cachedImageUrl = ref('')
const isGeneratingImage = ref(false)
const hasError = ref(false)
+const qrCodeUrl = computed(() => {
+ const filename = localStorage.getItem('photobooth-uploaded-filename')
+ if (filename) {
+ return `https://api.dekthai-online.com/apu-school/qrcode/photobooth.php?key=${filename}`
+ }
+ return ''
+})
+const downloadPageUrl = computed(() => {
+ const filename = localStorage.getItem('photobooth-uploaded-filename')
+ if (filename) {
+ return `${window.location.origin}/download?image=${filename}`
+ }
+ return ''
+})
onMounted(() => {
// โหลดข้อมูลจาก localStorage
const savedPhotos = localStorage.getItem('photobooth-photos')
@@ -281,7 +295,22 @@ const startOver = () => {
📥
ดาวน์โหลด
+
+
+
+
+
+
+
สแกน QR Code เพื่อดาวน์โหลด
+
+
+
+
หรือ คลิกที่นี่ เพื่อเปิดในแท็บใหม่
+
+
@@ -293,6 +322,7 @@ const startOver = () => {
กำลังเตรียมไฟล์สำหรับดาวน์โหลด...
-
+
diff --git a/vite.config.ts b/vite.config.ts
index 89b5a2f..1c1c54a 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -35,7 +35,7 @@ export default defineConfig({
})
],
server: {
- allowedHosts: ['photobooth.lookmeblog.com']
+ allowedHosts: ['photobooth.lookmeblog.com', 'photobooth.dekthai-online.com']
},
resolve: {
alias: {