Skip to content

Commit

Permalink
feat(presets): add missing vue-router api (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 authored Mar 6, 2023
1 parent b787873 commit 1be4b7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/presets/vue-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export default defineUnimportPreset({
from: 'vue-router',
imports: [
'useRouter',
'useRoute'
'useRoute',
'useLink',
'onBeforeRouteLeave',
'onBeforeRouteUpdate',
]
})

0 comments on commit 1be4b7b

Please sign in to comment.