hookehuyr

fix

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-20 17:45:57
* @LastEditTime: 2024-12-20 17:53:24
* @FilePath: /data-table/src/App.vue
* @Description:
-->
......@@ -164,10 +164,10 @@ onMounted(async () => {
wx.showAllNonBaseMenuItem();
// TEST:判断定位填表功能, 可能会弹出来上一次的表单提示,因为如果定位正确时还是需要恢复相应的表单
let open_location = false;
const targetLat = 31.278001;
const targetLng = 121.542778;
const radius = 1000; // 半径 1000 米
if (force_back !== '1' && open_location) { // 非后台用户模式
const targetLat = 31.278001;
const targetLng = 121.542778;
const radius = 1000; // 半径 1000 米
wx.getLocation({
type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: function (res) {
......