We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9a6bb commit f31b049Copy full SHA for f31b049
playground/src/pages/users/[id].vue
@@ -48,7 +48,9 @@ const { data: user2 } = useOldData()
48
49
definePage({
50
beforeEnter(to) {
51
- const { id } = (to as RouteLocationNormalized<'/users/[id]'>).params
+ // const { id } = (to as RouteLocationNormalized<'/users/[id]'>).params
52
+ // TODO: cannot use ts syntax yet
53
+ const { id } = to.params
54
if (Number.isNaN(Number(id))) {
55
console.log('invalid param id', id)
56
return false
0 commit comments