From 0536ee8e9d3216bbc48603533a5ddca0c3afbc92 Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Sun, 13 Oct 2024 04:05:11 +0800 Subject: [PATCH] fix: remember last selected camera --- app/components/Scan.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/Scan.vue b/app/components/Scan.vue index df44fc5..a2f35f7 100644 --- a/app/components/Scan.vue +++ b/app/components/Scan.vue @@ -67,6 +67,7 @@ watch(cameras, () => { if (selectedCamera.value && cameras.value.find(i => i.deviceId === selectedCamera.value)) { setTimeout(() => { qrScanner?.setCamera(selectedCamera.value!) + qrScanner?.start() }, 250) } })