在Vue2中,我可以使用this.$route.path
this.$route.path
在Vue3中,我可以使用useRouter()
useRouter()
但在 Vue2.7 组合 api 中,这两个我都不能使用。
vue.js vue-router vuejs2 vue-composition-api
vue-composition-api ×1
vue-router ×1
vue.js ×1
vuejs2 ×1