王震
2023-12-26 1234bdfcd5c1d328838e3a582345f8e75a7b2a79
	modified:   src/views/common/qrCodeApp.vue
modified: vue.config.js
已修改2个文件
19 ■■■■ 文件已修改
src/views/common/qrCodeApp.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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('错误')
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'