diff --git a/packages/hooks/useBrowserLocation.ts b/packages/hooks/useBrowserLocation.ts index b496ed94..499ef895 100644 --- a/packages/hooks/useBrowserLocation.ts +++ b/packages/hooks/useBrowserLocation.ts @@ -78,6 +78,7 @@ export function useBrowserLocation(options?: UseLocationOptions, cal?: (location }, options) }) .then((res) => { + isError.value = false location.value = res cal && cal(location) })