Skip to content

Commit f31b049

Browse files
committed
chore: remove playground error
1 parent 7d9a6bb commit f31b049

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

playground/src/pages/users/[id].vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ const { data: user2 } = useOldData()
4848
4949
definePage({
5050
beforeEnter(to) {
51-
const { id } = (to as RouteLocationNormalized<'/users/[id]'>).params
51+
// const { id } = (to as RouteLocationNormalized<'/users/[id]'>).params
52+
// TODO: cannot use ts syntax yet
53+
const { id } = to.params
5254
if (Number.isNaN(Number(id))) {
5355
console.log('invalid param id', id)
5456
return false

0 commit comments

Comments
 (0)