From 1234bdfcd5c1d328838e3a582345f8e75a7b2a79 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期二, 26 十二月 2023 11:03:34 +0800 Subject: [PATCH] modified: src/views/common/qrCodeApp.vue modified: vue.config.js --- vue.config.js | 4 ++-- src/views/common/qrCodeApp.vue | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 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('閿欒') diff --git a/vue.config.js b/vue.config.js index 6e02942..e5ad73d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,9 +5,9 @@ // const url = 'http://192.168.32.45:9999' -// const url = 'http://192.168.2.7:9999' +const url = 'http://192.168.2.7:9999' -const url = 'http://localhost:9999' +// const url = 'http://localhost:9999' const localUrl = 'http://localhost:8089' -- Gitblit v1.9.3