wujingjing
2025-02-19 404600d8352b4ecac6daf963b63e01bec543fcb3
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;