src/views/common/qrCodeApp.vue
@@ -18,8 +18,6 @@ </div> </template> <script> // 下载插件 // cnpm install --save vue-qrcode-reader // 引入 import { QrcodeStream } from "vue-qrcode-reader"; export default { @@ -43,8 +41,9 @@ onDecode(result) { console.log(result); if (result !== "") { this.$emit("onDecode", result); alert(result) this.result=result this.$emit("ok",result) alert(result) } }, // 相机反转 @@ -52,7 +51,7 @@ switch (this.camera) { //前置 case 'front': //转 //转后置 this.camera = 'rear' break //反之