From bf8f755535e07b59116fced6dab7e2b53e78ff50 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期五, 22 十二月 2023 17:15:23 +0800 Subject: [PATCH] modified: src/views/common/qrCodeApp.vue modified: src/views/product/workbench/productInDialog.vue modified: src/views/quality/Packaging_ledger/index.vue modified: vue.config.js --- src/views/common/qrCodeApp.vue | 16 ++-------------- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/views/common/qrCodeApp.vue b/src/views/common/qrCodeApp.vue index ef13928..75de8fe 100644 --- a/src/views/common/qrCodeApp.vue +++ b/src/views/common/qrCodeApp.vue @@ -35,16 +35,14 @@ created() { }, methods: { openCamera(){ - this.camera="front" + this.camera="rear" }, //鍥炶皟鎵弿缁撴灉 onDecode(result) { - console.log(result); if (result !== "") { this.result=result this.$emit("ok",this.result) this.cancelCode() - // alert(result) } }, // 鐩告満鍙嶈浆 @@ -75,12 +73,7 @@ async onInit(promise) { try { const { capabilities } = await promise; - console.log( - "馃殌 ~ file: cameracomponent.vue:47 ~ onInit ~ capabilities", - capabilities - ); } catch (error) { - // console.log() this.$toast(error.name); if (error.name === "NotAllowedError") { this.error = "ERROR: 鎮ㄩ渶瑕佹巿浜堢浉鏈鸿闂潈闄�"; @@ -106,12 +99,7 @@ } }, watch: { - "result": { - handler(newVal) { - console.log('鎵弿鍊�' + newVal); - }, - deep: true - } + } }; </script> -- Gitblit v1.9.3