Closed jesseice closed 6 months ago
empty
const route = useRoute(); route // undefined
return the current routing information
return undefined
No response
useRoute() must be used within script setup. It's only undefined when called in the wrong places. BTW, use discussions or the discord chat to ask questions, thanks!
useRoute()
Reproduction
empty
Steps to reproduce the bug
const route = useRoute(); route // undefined
Expected behavior
return the current routing information
Actual behavior
return undefined
Additional information
No response