diff --git a/banban-mini/src/pages/location/index.tsx b/banban-mini/src/pages/location/index.tsx index c4b1087..1de90fb 100644 --- a/banban-mini/src/pages/location/index.tsx +++ b/banban-mini/src/pages/location/index.tsx @@ -132,7 +132,7 @@ export default function Location() { ) useDidShow(() => { - void loadLocation() + void loadLocation(true) }) const loadLocation = async (showToast = false, nextMode?: TrajectoryMode) => { @@ -243,6 +243,10 @@ export default function Location() { }) } } catch (error: any) { + if (showToast) { + Taro.hideLoading() + } + setLoading(false) console.error('[location] load failed:', error) Taro.showToast({ title: error?.message || '位置更新失败',