Can the parameters passed by router-link be obtained in vue-router? How do I get the parameters if I can?

[question]: the interface passes parameters in the form of router-link. In vue-router/index.js routing, I want to get this parameter. Can I get it? How do I get it? (not in the next interface, but in the route)
[description]: I tried the form of this.$route.query.name and found that I couldn"t get
[Code]:

x.vue
<router-link :to="{path:"/account/modify", query:{name: item.name}}"></router-link>

router/index.js
 props: {
    header: {
      title: this.$route.query.name,
      ...
    }
  }
  

header.vue

export default {
    props: [...,"title",...],
    ...
}

[error prompt]:

clipboard.png

excuse me, ladies and gentlemen, how can I get the parameters passed in vue-router?
Note: other methods can be obtained through this.$route.query.name in the target interface, but at present I just want to know how to get them. Since I have just entered the hole, I would like to try several more ways

Mar.22,2021

beforeRouteEnter (to, from, next) {
  
}
Menu