Skip to content

Commit

Permalink
Doc: Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans authored May 20, 2024
1 parent dfcf60f commit f905338
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ export const $router = createRouter({ … }, { links: false })

function onClick (e) {
e.preventDefault()
let path = new Url(event.target.href).pathname
let params = $router.get()?.search
openPage($router, '', { }, { ...params })
$router.open(new Url(e.target.href).pathname)
}

export const Link = (props) => {
Expand Down

0 comments on commit f905338

Please sign in to comment.