Skip to content

Commit

Permalink
Doc: Fix example
Browse files Browse the repository at this point in the history
Based on #37 (comment)
  • Loading branch information
tordans authored May 20, 2024
1 parent 6b51a47 commit 3975fbd
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 3975fbd

Please sign in to comment.