vue中修改路由参数和监听路由参数的变化 不跳转页面修改路由参数 this.$router.push({ query: { keyword: this.keyword } }) 监听路由参数的变化 watch: { $route: { handler () { console.log(this.$route.query.keyword); }, deep: true } },