lin
2024-04-03 f4432eaac2792acc21ba847809e874208e4606a0
定位代码优化
1 files modified
5 ■■■■■ changed files
pages/home/index.vue 5 ●●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -1394,14 +1394,13 @@
                        //微信开发工具上面只能触发一次,真机上面是循环获取
                        //设置一个公共时间,原因是时间间隔太短,自己设置时间,然后去操作相应的逻辑
                        if (this.time == 20) {
                        if (this.time == 10) {
                            // 调取实时位置
                            this.reportLocation(this.location);
                            this.time = 0;
                        }
                        this.time++;
                        this.location = data;
                        this.reportLocation(this.location);
                    });
                }
            },