Vue dynamic routes cannot match

is a very common requirement. Click on an item to jump to the corresponding details page, but cannot jump, and vue-router does not report an error. It is really unable to find the reason. It is very strange

. < hr >


< hr >
//select-miners.vue
//
methods: {
  goToDetail(item) {
      this.$router.push({
        path: `/select-miners/${item.minerNo}`
      })
    }
}

I wonder why you can"t jump to a child route by clicking. I would like to ask all the little brothers and sisters to take a look at it. Thank you in advance!

Mar.11,2021

I am like this
routing:

`{
path:'/ resourseTotalDetail/:id',
name:'resourseTotal_detail',
component: ResourseTotal_detail,
meta: {index:2},
},`

Page:

<router-link :to="'resourseTotalDetail/'+item.id"></router-link>

Jump page:

watch: {
    '$route': function () {
        this.personId = this.$route.params.id;//id
    }
}

has it been solved?


have you solved it?

Menu