Skip to content

Commit

Permalink
chore: save
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang committed Oct 14, 2024
1 parent 2a8507d commit 9640650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/packages/tour/tour.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ export const Tour: FunctionComponent<
const classes = classNames(classPrefix, className)

useEffect(() => {
if (visible) {
getRootPosition()
}
setActive(0)
setShowTour(visible)
setShowPopup(visible)
getRootPosition()
}, [visible])

useEffect(() => {
Expand Down

0 comments on commit 9640650

Please sign in to comment.