From f43d4e9964768d6c8973bd271ace6f1ed04e2281 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 26 十二月 2023 11:23:46 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before

---
 src/views/common/qrCodeApp.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/views/common/qrCodeApp.vue b/src/views/common/qrCodeApp.vue
index 892e490..2e5ef67 100644
--- a/src/views/common/qrCodeApp.vue
+++ b/src/views/common/qrCodeApp.vue
@@ -27,7 +27,7 @@
     data() {
         return {
             isShow: true,
-            camera: "front",
+            camera: "rear",
             result: "", // 鎵爜缁撴灉淇℃伅
             error: "" // 閿欒淇℃伅
         };
@@ -48,14 +48,13 @@
         // 鐩告満鍙嶈浆
         switchCamera() {
             switch (this.camera) {
-                //鍓嶇疆
-                case 'front':
-                    //杞悗缃�
-                    this.camera = 'rear'
-                    break
-                    //鍙嶄箣
+                //鍙嶄箣
                 case 'rear':
-                    this.camera = 'front'
+                this.camera = 'front'
+                break
+                case 'front':
+                    //鍚庣疆
+                    this.camera = 'rear'
                     break
                 default:
                     this.$toast('閿欒')

--
Gitblit v1.9.3