Vue-router reported the wrong route and could not find it.

nuxt frame routes are automatically generated.
and my jumps are written like this

<nuxt-link :to="{name: "/",query:{ id:item.detailId }}">
    <img :src="item.img">
    

{{ item.dis}} {{ item.time }}

</nuxt-link>
Jan.17,2022

Please attach a picture of your router file

think about it for yourself. The name you define is index,. The name you jump to is /
clipboard.png

clipboard.png

.

just change the name you jump to index


this.$router.push ({path:'/'}) try

the route this.$router.push ({name:'/'}) of router/index.js without name:'/' cannot be fetched

Menu