SanHQin 2 月之前
父節點
當前提交
9680b784c1

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-f0eea21c.b8356bfa.css


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-f0eea21c.012481f8.js


+ 3 - 4
src/components/qrScanner.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="sweep" v-if="show">
-    <video ref="video" id="reader" style="width:100%;height:auto;"></video>
+    <video ref="video" playsinline id="reader" style="width:100%;height:auto;"></video>
     <div class="ku-scanner">
       <div class="ku-scanner-content">
         <div class="ku-scanner-tooltip">
@@ -73,9 +73,8 @@ export default {
       this.scanner = new QrScanner(
         this.$refs.video,
         result => {
-          if (result) {
-            this.$toast(result)
-            this.$emit('success', result)
+          if (result.data) {
+            this.$emit('success', result.data)
           }
 
           // this.scanner.stop() // 扫描一次后停止

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