SanHQin 20 hours ago
parent
commit
3c967bc04e

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 1 - 1
dist/report.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-35d65314.cda785b4.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.db776c4e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-35d65314.96fda2ad.js


+ 10 - 2
src/components/sweepPage_html5_qrcode.vue

@@ -134,8 +134,16 @@ export default {
       //   .catch(err => {
       //     this.msg += err
       //   })
-      this.cameras = new Html5Qrcode('reader')
-      this.cameras.start({ facingMode: { exact: 'environment' } }, { fps: 10 }, this.CamerasSuccess)
+      this.cameras = new Html5Qrcode('reader', {
+        fps: 10,
+        videoConstraints: {
+          width: { ideal: 1280 },
+          height: { ideal: 720 },
+          // 或尝试 facingMode
+          facingMode: 'environment' // 后置摄像头
+        }
+      })
+      this.cameras.start({ facingMode: { exact: 'environment' }}, { fps: 10 }, this.CamerasSuccess)
     },
     CamerasSuccess(decodedText, decodedResult) {
       console.log(decodedResult)

Some files were not shown because too many files changed in this diff