Skip to content

Commit

Permalink
fix: 失败一次后isError一直是 true
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Nov 17, 2022
1 parent 7df63ca commit 5837db6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/hooks/useBrowserLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export function useBrowserLocation(options?: UseLocationOptions, cal?: (location
}, options)
})
.then((res) => {
isError.value = false
location.value = res
cal && cal(location)
})
Expand Down

0 comments on commit 5837db6

Please sign in to comment.