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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7aca80-28edd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7aca80-28edd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?