From a762b59c2c4b459f72ede19716d476bb3513f622 Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期四, 20 二月 2025 08:27:57 +0800 Subject: [PATCH] 获取位置 --- src/components/chat/Chat.vue | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 08b5198..a1a2058 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -132,21 +132,21 @@ ...judgeParams, } as any; - if (!position) { - const loadingInstance = ElLoadingService({ - text: '鑾峰彇浣嶇疆涓�...', - target: '.layout-parent', - fullscreen:false, - }); - position = await getCurrentPosition().finally(() => { - loadingInstance.close(); - }); - } + // if (!position) { + // const loadingInstance = ElLoadingService({ + // text: '鑾峰彇浣嶇疆涓�...', + // target: '.layout-parent', + // fullscreen:false, + // }); + // position = await getCurrentPosition().finally(() => { + // loadingInstance.close(); + // }); + // } - if (position) { - const { latitude, longitude } = position; - params.cur_pos = [longitude, latitude].join(','); - } + // if (position) { + // const { latitude, longitude } = position; + // params.cur_pos = [longitude, latitude].join(','); + // } if (activeGroupType.value) { params.group_type = activeGroupType.value; -- Gitblit v1.9.3