Vue routing configuration child routing paths cannot be switched later, as shown in the code below

{

  path: "/song",
  component: Song,
  children: [
    {
      path: ":id",
      component: Songditail
    },
    {
      path: "/getNewsList",
      component: newslist
    }
  ]
}

this.$router.push({ path: "/song/getNews" })
newslist

I don't quite understand the relationship between / recommend/getNews and your defined route
your match newslist > to / song/getNewsList , then go : id , Songditail
put / getNewsList in front of : id try

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-1e85f1e-46b5f.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-1e85f1e-46b5f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?