Skip to content

Commit

Permalink
fix: route when modal opened
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Aug 7, 2021
1 parent 8ed5a7a commit 5906be8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ router.addRoute({

router.afterEach(({ name }) => {
document.body.setAttribute('data-route', name as string)
// Fix route when modal opened
document.body.style.overflow = 'visible'
})

export { router }

0 comments on commit 5906be8

Please sign in to comment.