How to get current route in vue2.7 composition api

Viewed 29

In Vue2, I can use this.$route.path

In Vue3, I can use useRouter()

but in Vue2.7 composition api, both of them I can't use.

0 Answers
Related