完整url: window.location.href
路由路径: this.$route.path
路由路径参数: this.$route.params
Vue获取页面当前路由的方式
最新推荐文章于 2024-03-28 15:29:31 发布
完整url: window.location.href
路由路径: this.$route.path
路由路径参数: this.$route.params