| | |
| | | ...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; |